diff options
Diffstat (limited to 'Libraries/LibGUI/GAction.cpp')
-rw-r--r-- | Libraries/LibGUI/GAction.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Libraries/LibGUI/GAction.cpp b/Libraries/LibGUI/GAction.cpp index 8d9d023f87..530f553a87 100644 --- a/Libraries/LibGUI/GAction.cpp +++ b/Libraries/LibGUI/GAction.cpp @@ -3,19 +3,13 @@ #include <LibGUI/GButton.h> #include <LibGUI/GMenuItem.h> -GAction::GAction(const StringView& text, const StringView& custom_data, Function<void(GAction&)> on_activation_callback, GWidget* widget) +GAction::GAction(const StringView& text, Function<void(GAction&)> on_activation_callback, GWidget* widget) : on_activation(move(on_activation_callback)) , m_text(text) - , m_custom_data(custom_data) , m_widget(widget ? widget->make_weak_ptr() : nullptr) { } -GAction::GAction(const StringView& text, Function<void(GAction&)> on_activation_callback, GWidget* widget) - : GAction(text, String(), move(on_activation_callback), widget) -{ -} - GAction::GAction(const StringView& text, RefPtr<GraphicsBitmap>&& icon, Function<void(GAction&)> on_activation_callback, GWidget* widget) : on_activation(move(on_activation_callback)) , m_text(text) |