mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
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:
parent
b9f9cbb12c
commit
54845c4bf2
Notes:
sideshowbarker
2024-07-17 19:46:14 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/54845c4bf2f Pull-request: https://github.com/SerenityOS/serenity/pull/12286 Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 1 additions and 3 deletions
|
@ -71,11 +71,9 @@ public:
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue