diff --git a/Userland/Libraries/LibGfx/GrayscaleBitmap.h b/Userland/Libraries/LibGfx/GrayscaleBitmap.h deleted file mode 100644 index a779c5a4cd..0000000000 --- a/Userland/Libraries/LibGfx/GrayscaleBitmap.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2023, MacDue - * - * SPDX-License-Identifier: BSD-2-Clause - */ - -#pragma once - -#include "Size.h" -#include -#include -#include - -namespace Gfx { - -class GrayscaleBitmap { -public: - GrayscaleBitmap() = delete; - constexpr GrayscaleBitmap(ReadonlyBytes data, unsigned width, unsigned height) - : m_data(data) - , m_size(width, height) - { - VERIFY(width * height == data.size()); - } - - constexpr u8 pixel_at(unsigned x, unsigned y) const { return m_data[y * width() + x]; } - constexpr ReadonlyBytes data() const { return m_data; } - - constexpr IntSize size() const { return m_size; } - constexpr unsigned width() const { return m_size.width(); } - constexpr unsigned height() const { return m_size.height(); } - -private: - ReadonlyBytes m_data {}; - IntSize m_size {}; -}; - -} diff --git a/Userland/Libraries/LibGfx/Painter.h b/Userland/Libraries/LibGfx/Painter.h index 20ac01d142..a45749d629 100644 --- a/Userland/Libraries/LibGfx/Painter.h +++ b/Userland/Libraries/LibGfx/Painter.h @@ -13,7 +13,6 @@ #include #include #include -#include #include #include #include diff --git a/Userland/Libraries/LibWeb/Painting/CheckBoxPaintable.cpp b/Userland/Libraries/LibWeb/Painting/CheckBoxPaintable.cpp index db42462d9b..f5600e2308 100644 --- a/Userland/Libraries/LibWeb/Painting/CheckBoxPaintable.cpp +++ b/Userland/Libraries/LibWeb/Painting/CheckBoxPaintable.cpp @@ -7,7 +7,6 @@ #include #include -#include #include #include #include diff --git a/Userland/Libraries/LibWeb/Painting/Command.h b/Userland/Libraries/LibWeb/Painting/Command.h index 497ad41702..111124dfe8 100644 --- a/Userland/Libraries/LibWeb/Painting/Command.h +++ b/Userland/Libraries/LibWeb/Painting/Command.h @@ -15,7 +15,6 @@ #include #include #include -#include #include #include #include diff --git a/Userland/Libraries/LibWeb/Painting/CommandList.h b/Userland/Libraries/LibWeb/Painting/CommandList.h index c1f4b22744..89c34c2682 100644 --- a/Userland/Libraries/LibWeb/Painting/CommandList.h +++ b/Userland/Libraries/LibWeb/Painting/CommandList.h @@ -15,7 +15,6 @@ #include #include #include -#include #include #include #include diff --git a/Userland/Libraries/LibWeb/Painting/RecordingPainter.h b/Userland/Libraries/LibWeb/Painting/RecordingPainter.h index 667b03d8e6..f99917c8cb 100644 --- a/Userland/Libraries/LibWeb/Painting/RecordingPainter.h +++ b/Userland/Libraries/LibWeb/Painting/RecordingPainter.h @@ -15,7 +15,6 @@ #include #include #include -#include #include #include #include