diff options
author | Andreas Kling <kling@serenityos.org> | 2021-07-09 21:09:41 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-09 22:07:00 +0200 |
commit | 1cec672e6908676b4383762b3a6f205de84243ac (patch) | |
tree | 3db4e48368dce5503b4eee409164eac1fdd90878 | |
parent | 0ef3cf7b0fff5abf5bb3291a75609984d8ca428f (diff) | |
download | serenity-1cec672e6908676b4383762b3a6f205de84243ac.zip |
PixelPaint: Remove unused member from LayerListWidget::Gadget
-rw-r--r-- | Userland/Applications/PixelPaint/LayerListWidget.cpp | 6 | ||||
-rw-r--r-- | Userland/Applications/PixelPaint/LayerListWidget.h | 1 |
2 files changed, 3 insertions, 4 deletions
diff --git a/Userland/Applications/PixelPaint/LayerListWidget.cpp b/Userland/Applications/PixelPaint/LayerListWidget.cpp index c569bdf8dc..fe3c987985 100644 --- a/Userland/Applications/PixelPaint/LayerListWidget.cpp +++ b/Userland/Applications/PixelPaint/LayerListWidget.cpp @@ -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(); } diff --git a/Userland/Applications/PixelPaint/LayerListWidget.h b/Userland/Applications/PixelPaint/LayerListWidget.h index b23806d04c..7364bf2d5f 100644 --- a/Userland/Applications/PixelPaint/LayerListWidget.h +++ b/Userland/Applications/PixelPaint/LayerListWidget.h @@ -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; }; |