summaryrefslogtreecommitdiff
path: root/Applications/SystemMonitor
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-08-20 19:43:12 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-08-20 19:44:02 +0200
commitf7dce05c82d0826c8ed2373ca25e3ee14c5a3065 (patch)
treea73f6bbfef7542cf3ddf9ce8b5367caa14545d6e /Applications/SystemMonitor
parent4f3234148a3e994db1532671a911b97c996e590a (diff)
downloadserenity-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.cpp8
-rw-r--r--Applications/SystemMonitor/ProcessTableView.h3
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;
};