summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/AbstractView.h
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2021-05-25 22:48:43 +0200
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-05-26 17:39:13 +0430
commit2c772d184882dbdce0ec532f59c87743819f2e0d (patch)
treefd6bb1a769d1cd18140204b9d1c079ce18babf18 /Userland/Libraries/LibGUI/AbstractView.h
parentebe38639bcd8aac5302f969747796d940c5ab20b (diff)
downloadserenity-2c772d184882dbdce0ec532f59c87743819f2e0d.zip
LibGUI/AbstractView: Remove `on_selection`
Since the introduction of multi-select, we have had both `on_selection` and `on_selection_change`, the latter of which was only invoked when a change in selection came in through the model. This removes `AbstractView::on_selection` and replaces it usage with the more explicit `on_selection_change` everywhere.
Diffstat (limited to 'Userland/Libraries/LibGUI/AbstractView.h')
-rw-r--r--Userland/Libraries/LibGUI/AbstractView.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/AbstractView.h b/Userland/Libraries/LibGUI/AbstractView.h
index 065beeff64..5aa529354d 100644
--- a/Userland/Libraries/LibGUI/AbstractView.h
+++ b/Userland/Libraries/LibGUI/AbstractView.h
@@ -98,7 +98,6 @@ public:
Function<void()> on_selection_change;
Function<void(const ModelIndex&)> on_activation;
- Function<void(const ModelIndex&)> on_selection;
Function<void(const ModelIndex&, const ContextMenuEvent&)> on_context_menu_request;
Function<void(const ModelIndex&, const DropEvent&)> on_drop;