Skip to content

Commit

Permalink
AK: Remove commented-out code from Bitmap container
Browse files Browse the repository at this point in the history
Instead, add a note to explain that there's a const variant of data()
method in the parent BitmapView class.
  • Loading branch information
supercomputer7 authored and bgianfo committed Feb 5, 2022
1 parent b9f9cbb commit 54845c4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions AK/Bitmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,9 @@ class Bitmap : public BitmapView {
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 const* data() const { return m_data; }
// ^BitmapView

void grow(size_t size, bool default_value)
{
VERIFY(size > m_size);
Expand Down

0 comments on commit 54845c4

Please sign in to comment.