Skip to content

Commit

Permalink
LibGfx: Remove unused Bitmap::fill()
Browse files Browse the repository at this point in the history
  • Loading branch information
kalenikaliaksandr authored and awesomekling committed Sep 19, 2024
1 parent a499ece commit 9772afc
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 66 deletions.
1 change: 0 additions & 1 deletion Tests/LibGfx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ set(TEST_SOURCES
TestImageDecoder.cpp
TestImageWriter.cpp
TestMedianCut.cpp
TestPainter.cpp
TestRect.cpp
TestWOFF.cpp
TestWOFF2.cpp
Expand Down
55 changes: 0 additions & 55 deletions Tests/LibGfx/TestPainter.cpp

This file was deleted.

8 changes: 0 additions & 8 deletions Userland/Libraries/LibGfx/Bitmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,6 @@ void Bitmap::strip_alpha_channel()
m_format = BitmapFormat::BGRx8888;
}

void Bitmap::fill(Color color)
{
for (int y = 0; y < height(); ++y) {
auto* scanline = this->scanline(y);
fast_u32_fill(scanline, color.value(), width());
}
}

Gfx::ShareableBitmap Bitmap::to_shareable_bitmap() const
{
auto bitmap_or_error = to_bitmap_backed_by_anonymous_buffer();
Expand Down
2 changes: 0 additions & 2 deletions Userland/Libraries/LibGfx/Bitmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@ class Bitmap : public RefCounted<Bitmap> {
return bpp_for_format(m_format);
}

void fill(Color);

[[nodiscard]] bool has_alpha_channel() const { return m_format == BitmapFormat::BGRA8888 || m_format == BitmapFormat::RGBA8888; }
[[nodiscard]] BitmapFormat format() const { return m_format; }

Expand Down

0 comments on commit 9772afc

Please sign in to comment.