Truly independent web browser
LibGfx: Remove unused Bitmap and CMYKBitmap helpers
Shannon Boothe6a4ea351eef
diff --git a/Libraries/LibGfx/Bitmap.cpp b/Libraries/LibGfx/Bitmap.cppindex 4557f2d0d63..907022fbb18 100644--- a/Libraries/LibGfx/Bitmap.cpp+++ b/Libraries/LibGfx/Bitmap.cpp@@ -213,14 +213,6 @@ Bitmap::~Bitmap()m_data = nullptr;}-void Bitmap::strip_alpha_channel()-{- VERIFY(m_format == BitmapFormat::BGRA8888 || m_format == BitmapFormat::BGRx8888);- for (BGRA8888& pixel : *this)- pixel = 0xff000000 | (pixel & 0xffffff);- m_format = BitmapFormat::BGRx8888;-}-Gfx::ShareableBitmap Bitmap::to_shareable_bitmap() const{auto bitmap_or_error = to_bitmap_backed_by_anonymous_buffer();diff --git a/Libraries/LibGfx/Bitmap.h b/Libraries/LibGfx/Bitmap.hindex 2639f396cc4..97a0298699b 100644--- a/Libraries/LibGfx/Bitmap.h+++ b/Libraries/LibGfx/Bitmap.h@@ -98,9 +98,6 @@ public:[[nodiscard]] bool has_alpha_channel() const { return m_format == BitmapFormat::BGRA8888 || m_format == BitmapFormat::RGBA8888; }[[nodiscard]] BitmapFormat format() const { return m_format; }- // Call only for BGRx8888 and BGRA8888 bitmaps.- void strip_alpha_channel();-[[nodiscard]] static constexpr size_t size_in_bytes(size_t pitch, int height) { return pitch * height; }[[nodiscard]] size_t size_in_bytes() const { return size_in_bytes(m_pitch, height()); }diff --git a/Libraries/LibGfx/CMYKBitmap.h b/Libraries/LibGfx/CMYKBitmap.hindex cf0b7fe4829..550d0755568 100644--- a/Libraries/LibGfx/CMYKBitmap.h+++ b/Libraries/LibGfx/CMYKBitmap.h@@ -32,10 +32,6 @@ public:[[nodiscard]] CMYK* scanline(int y);[[nodiscard]] CMYK const* scanline(int y) const;- [[nodiscard]] CMYK* begin();- [[nodiscard]] CMYK* end();- [[nodiscard]] size_t data_size() const { return m_data.size(); }-ErrorOr<NonnullRefPtr<Bitmap>> to_low_quality_rgb() const;private:@@ -63,14 +59,4 @@ inline CMYK const* CMYKBitmap::scanline(int y) constreturn reinterpret_cast<CMYK const*>(m_data.data() + y * m_size.width() * sizeof(CMYK));}-inline CMYK* CMYKBitmap::begin()-{- return reinterpret_cast<CMYK*>(m_data.data());-}--inline CMYK* CMYKBitmap::end()-{- return reinterpret_cast<CMYK*>(m_data.data() + data_size());-}-}