summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2021-11-06 15:56:10 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-10 14:39:42 +0100
commitbf7a2ff941ecdc9ee5abfb1d08e16fe1bcb86153 (patch)
tree829d044f30c9eaf5af7a1a531001816c3f95b1fb /AK
parent850db15d662385975ae2c0cf1d04e69e9edb10c5 (diff)
downloadserenity-bf7a2ff941ecdc9ee5abfb1d08e16fe1bcb86153.zip
AK+Kernel: Make BitmapView read-only
Diffstat (limited to 'AK')
-rw-r--r--AK/Bitmap.h1
-rw-r--r--AK/BitmapView.h8
2 files changed, 0 insertions, 9 deletions
diff --git a/AK/Bitmap.h b/AK/Bitmap.h
index 9e0ad3f2a8..0f08834b52 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 6117f02d15..69ddc70605 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<u8>((1u << (index % 8)));
- else
- m_data[index / 8] &= static_cast<u8>(~(1u << (index % 8)));
- }
size_t count_slow(bool value) const
{