From 25f6fa651f13dfa6892fa995f42b587f6d872899 Mon Sep 17 00:00:00 2001 From: Pavel Shliak Date: Tue, 19 Nov 2024 15:48:47 +0400 Subject: [PATCH] LibGfx: Do not provide BPP --- Libraries/LibGfx/Bitmap.h | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/Libraries/LibGfx/Bitmap.h b/Libraries/LibGfx/Bitmap.h index e83a65feb9f..c0d1b054aa0 100644 --- a/Libraries/LibGfx/Bitmap.h +++ b/Libraries/LibGfx/Bitmap.h @@ -114,26 +114,8 @@ public: [[nodiscard]] size_t pitch() const { return m_pitch; } - [[nodiscard]] static unsigned bpp_for_format(BitmapFormat format) - { - switch (format) { - case BitmapFormat::BGRx8888: - case BitmapFormat::BGRA8888: - return 32; - default: - VERIFY_NOT_REACHED(); - case BitmapFormat::Invalid: - return 0; - } - } - [[nodiscard]] static size_t minimum_pitch(size_t width, BitmapFormat); - [[nodiscard]] unsigned bpp() const - { - return bpp_for_format(m_format); - } - [[nodiscard]] bool has_alpha_channel() const { return m_format == BitmapFormat::BGRA8888 || m_format == BitmapFormat::RGBA8888; } [[nodiscard]] BitmapFormat format() const { return m_format; }