mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
LibGfx: Delete unused id property from ImmutableBitmap
This commit is contained in:
parent
a2c33ea4e1
commit
460803d2da
Notes:
github-actions[bot]
2024-11-09 20:21:10 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/460803d2da2 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2254
2 changed files with 0 additions and 6 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue