From 99a00dc39b67c5862331f2533e928dcb952cc4c6 Mon Sep 17 00:00:00 2001 From: thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> Date: Wed, 27 Jul 2022 07:40:30 -0400 Subject: [PATCH] LibGUI: Remove useless frame members from Toolbar Frames had no effect within Toolbar and are now superceded by ToolbarContainer. --- Userland/Libraries/LibGUI/FilePicker.cpp | 1 - Userland/Libraries/LibGUI/Toolbar.h | 3 --- 2 files changed, 4 deletions(-) diff --git a/Userland/Libraries/LibGUI/FilePicker.cpp b/Userland/Libraries/LibGUI/FilePicker.cpp index 4be64268e7..080fb8d63b 100644 --- a/Userland/Libraries/LibGUI/FilePicker.cpp +++ b/Userland/Libraries/LibGUI/FilePicker.cpp @@ -89,7 +89,6 @@ FilePicker::FilePicker(Window* parent_window, Mode mode, StringView filename, St VERIFY_NOT_REACHED(); auto& toolbar = *widget.find_descendant_of_type_named("toolbar"); - toolbar.set_has_frame(false); m_location_textbox = *widget.find_descendant_of_type_named("location_textbox"); m_location_textbox->set_text(path); diff --git a/Userland/Libraries/LibGUI/Toolbar.h b/Userland/Libraries/LibGUI/Toolbar.h index 5526a5fd98..1c5e2686cf 100644 --- a/Userland/Libraries/LibGUI/Toolbar.h +++ b/Userland/Libraries/LibGUI/Toolbar.h @@ -24,8 +24,6 @@ public: GUI::Button& add_action(GUI::Action&); void add_separator(); - bool has_frame() const { return m_has_frame; } - void set_has_frame(bool has_frame) { m_has_frame = has_frame; } virtual Optional calculated_preferred_size() const override; @@ -47,7 +45,6 @@ private: NonnullOwnPtrVector m_items; const Gfx::Orientation m_orientation; int m_button_size { 16 }; - bool m_has_frame { true }; }; }