LibGfx: Delete unused id property from ImmutableBitmap

This commit is contained in:
Aliaksandr Kalenik 2024-11-09 02:43:16 +01:00 committed by Alexander Kalenik
parent a2c33ea4e1
commit 460803d2da
Notes: github-actions[bot] 2024-11-09 20:21:10 +00:00
2 changed files with 0 additions and 6 deletions

View file

@ -8,8 +8,6 @@
namespace Gfx {
static size_t s_next_immutable_bitmap_id = 0;
NonnullRefPtr<ImmutableBitmap> ImmutableBitmap::create(NonnullRefPtr<Bitmap> bitmap)
{
return adopt_ref(*new ImmutableBitmap(move(bitmap)));
@ -17,7 +15,6 @@ NonnullRefPtr<ImmutableBitmap> ImmutableBitmap::create(NonnullRefPtr<Bitmap> bit
ImmutableBitmap::ImmutableBitmap(NonnullRefPtr<Bitmap> bitmap)
: m_bitmap(move(bitmap))
, m_id(s_next_immutable_bitmap_id++)
{
}

View file

@ -28,11 +28,8 @@ public:
IntRect rect() const { return m_bitmap->rect(); }
IntSize size() const { return m_bitmap->size(); }
size_t id() const { return m_id; }
private:
NonnullRefPtr<Bitmap> m_bitmap;
size_t m_id;
explicit ImmutableBitmap(NonnullRefPtr<Bitmap> bitmap);
};