diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-08-20 19:43:12 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-08-20 19:44:02 +0200 |
commit | f7dce05c82d0826c8ed2373ca25e3ee14c5a3065 (patch) | |
tree | a73f6bbfef7542cf3ddf9ce8b5367caa14545d6e /Applications/SystemMonitor | |
parent | 4f3234148a3e994db1532671a911b97c996e590a (diff) | |
download | serenity-f7dce05c82d0826c8ed2373ca25e3ee14c5a3065.zip |
LibGUI: Remove confusing GModelNotification concept
This was a bad idea and it didn't stick. Instead we should just use the
simple "on_foo" hook functions like we do for everything else. :^)
Diffstat (limited to 'Applications/SystemMonitor')
-rw-r--r-- | Applications/SystemMonitor/ProcessTableView.cpp | 8 | ||||
-rw-r--r-- | Applications/SystemMonitor/ProcessTableView.h | 3 |
2 files changed, 0 insertions, 11 deletions
diff --git a/Applications/SystemMonitor/ProcessTableView.cpp b/Applications/SystemMonitor/ProcessTableView.cpp index 2871018182..50a080c118 100644 --- a/Applications/SystemMonitor/ProcessTableView.cpp +++ b/Applications/SystemMonitor/ProcessTableView.cpp @@ -26,14 +26,6 @@ void ProcessTableView::refresh() model()->update(); } -void ProcessTableView::model_notification(const GModelNotification& notification) -{ - if (notification.type() == GModelNotification::ModelUpdated) { - // Do something? - return; - } -} - pid_t ProcessTableView::selected_pid() const { if (!model()->selected_index().is_valid()) diff --git a/Applications/SystemMonitor/ProcessTableView.h b/Applications/SystemMonitor/ProcessTableView.h index 98d3f3edb1..3eace1bdb1 100644 --- a/Applications/SystemMonitor/ProcessTableView.h +++ b/Applications/SystemMonitor/ProcessTableView.h @@ -17,7 +17,4 @@ public: void refresh(); Function<void(pid_t)> on_process_selected; - -private: - virtual void model_notification(const GModelNotification&) override; }; |