mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:37:35 +00:00
PixelPaint: Remove unused member from LayerListWidget::Gadget
This commit is contained in:
parent
0ef3cf7b0f
commit
1cec672e69
2 changed files with 3 additions and 4 deletions
|
@ -45,7 +45,7 @@ void LayerListWidget::rebuild_gadgets()
|
|||
m_gadgets.clear();
|
||||
if (m_image) {
|
||||
for (size_t layer_index = 0; layer_index < m_image->layer_count(); ++layer_index) {
|
||||
m_gadgets.append({ layer_index, {}, {}, false, {} });
|
||||
m_gadgets.append({ layer_index, {}, false, {} });
|
||||
}
|
||||
}
|
||||
relayout_gadgets();
|
||||
|
@ -208,8 +208,8 @@ void LayerListWidget::image_did_add_layer(size_t layer_index)
|
|||
m_gadgets[m_moving_gadget_index.value()].is_moving = false;
|
||||
m_moving_gadget_index = {};
|
||||
}
|
||||
Gadget gadget { layer_index, {}, {}, false, {} };
|
||||
m_gadgets.insert(layer_index, move(gadget));
|
||||
Gadget gadget { layer_index, {}, false, {} };
|
||||
m_gadgets.insert(layer_index, gadget);
|
||||
relayout_gadgets();
|
||||
}
|
||||
|
||||
|
|
|
@ -52,7 +52,6 @@ private:
|
|||
struct Gadget {
|
||||
size_t layer_index { 0 };
|
||||
Gfx::IntRect rect;
|
||||
Gfx::IntRect temporary_rect_during_move;
|
||||
bool is_moving { false };
|
||||
Gfx::IntPoint movement_delta;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue