mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-15 22:12: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: 460803d2da
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2254
2 changed files with 0 additions and 6 deletions
|
@ -8,8 +8,6 @@
|
||||||
|
|
||||||
namespace Gfx {
|
namespace Gfx {
|
||||||
|
|
||||||
static size_t s_next_immutable_bitmap_id = 0;
|
|
||||||
|
|
||||||
NonnullRefPtr<ImmutableBitmap> ImmutableBitmap::create(NonnullRefPtr<Bitmap> bitmap)
|
NonnullRefPtr<ImmutableBitmap> ImmutableBitmap::create(NonnullRefPtr<Bitmap> bitmap)
|
||||||
{
|
{
|
||||||
return adopt_ref(*new ImmutableBitmap(move(bitmap)));
|
return adopt_ref(*new ImmutableBitmap(move(bitmap)));
|
||||||
|
@ -17,7 +15,6 @@ NonnullRefPtr<ImmutableBitmap> ImmutableBitmap::create(NonnullRefPtr<Bitmap> bit
|
||||||
|
|
||||||
ImmutableBitmap::ImmutableBitmap(NonnullRefPtr<Bitmap> bitmap)
|
ImmutableBitmap::ImmutableBitmap(NonnullRefPtr<Bitmap> bitmap)
|
||||||
: m_bitmap(move(bitmap))
|
: m_bitmap(move(bitmap))
|
||||||
, m_id(s_next_immutable_bitmap_id++)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,11 +28,8 @@ public:
|
||||||
IntRect rect() const { return m_bitmap->rect(); }
|
IntRect rect() const { return m_bitmap->rect(); }
|
||||||
IntSize size() const { return m_bitmap->size(); }
|
IntSize size() const { return m_bitmap->size(); }
|
||||||
|
|
||||||
size_t id() const { return m_id; }
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
NonnullRefPtr<Bitmap> m_bitmap;
|
NonnullRefPtr<Bitmap> m_bitmap;
|
||||||
size_t m_id;
|
|
||||||
|
|
||||||
explicit ImmutableBitmap(NonnullRefPtr<Bitmap> bitmap);
|
explicit ImmutableBitmap(NonnullRefPtr<Bitmap> bitmap);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue