AK: Remove commented-out code from Bitmap container

Instead, add a note to explain that there's a const variant of data()
method in the parent BitmapView class.
This commit is contained in:
Liav A 2022-02-04 22:18:49 +02:00 committed by Brian Gianforcaro
parent b9f9cbb12c
commit 54845c4bf2
Notes: sideshowbarker 2024-07-17 19:46:14 +09:00

View file

@ -71,11 +71,9 @@ public:
m_data[index / 8] &= static_cast<u8>(~(1u << (index % 8))); m_data[index / 8] &= static_cast<u8>(~(1u << (index % 8)));
} }
// NOTE: There's a const method variant of this method at the parent class BitmapView.
[[nodiscard]] u8* data() { return m_data; } [[nodiscard]] u8* data() { return m_data; }
// [[nodiscard]] u8 const* data() const { return m_data; }
// ^BitmapView
void grow(size_t size, bool default_value) void grow(size_t size, bool default_value)
{ {
VERIFY(size > m_size); VERIFY(size > m_size);