From 54845c4bf2fe9db0ff9e661f18f883dc3e7f89ba Mon Sep 17 00:00:00 2001 From: Liav A Date: Fri, 4 Feb 2022 22:18:49 +0200 Subject: [PATCH] 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. --- AK/Bitmap.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/AK/Bitmap.h b/AK/Bitmap.h index 4a32768944..2aeb381910 100644 --- a/AK/Bitmap.h +++ b/AK/Bitmap.h @@ -71,11 +71,9 @@ public: m_data[index / 8] &= static_cast(~(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);