diff --git a/AK/Bitmap.h b/AK/Bitmap.h index 9e0ad3f2a87..0f08834b524 100644 --- a/AK/Bitmap.h +++ b/AK/Bitmap.h @@ -37,7 +37,6 @@ public: { } - [[nodiscard]] BitmapView view() { return { m_data, m_size }; } [[nodiscard]] BitmapView const view() const { return { m_data, m_size }; } Bitmap(Bitmap&& other) diff --git a/AK/BitmapView.h b/AK/BitmapView.h index 6117f02d15e..69ddc70605e 100644 --- a/AK/BitmapView.h +++ b/AK/BitmapView.h @@ -32,14 +32,6 @@ public: VERIFY(index < m_size); return 0 != (m_data[index / 8] & (1u << (index % 8))); } - void set(size_t index, bool value) const - { - VERIFY(index < m_size); - if (value) - m_data[index / 8] |= static_cast((1u << (index % 8))); - else - m_data[index / 8] &= static_cast(~(1u << (index % 8))); - } size_t count_slow(bool value) const { diff --git a/Kernel/FileSystem/Ext2FileSystem.h b/Kernel/FileSystem/Ext2FileSystem.h index bf220ee454d..c252b463b9f 100644 --- a/Kernel/FileSystem/Ext2FileSystem.h +++ b/Kernel/FileSystem/Ext2FileSystem.h @@ -6,7 +6,7 @@ #pragma once -#include +#include #include #include #include @@ -176,7 +176,7 @@ private: BlockIndex bitmap_block_index { 0 }; bool dirty { false }; NonnullOwnPtr buffer; - BitmapView bitmap(u32 blocks_per_group) { return BitmapView { buffer->data(), blocks_per_group }; } + Bitmap bitmap(u32 blocks_per_group) { return Bitmap { buffer->data(), blocks_per_group }; } }; ErrorOr get_bitmap_block(BlockIndex);