mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibGfx: Delete unused id property from ImmutableBitmap
This commit is contained in:
committed by
Alexander Kalenik
parent
a2c33ea4e1
commit
460803d2da
@@ -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++)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user