From 95339ab1d15219938c7b2945f4f558dc162c9127 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 4 Apr 2015 01:36:53 +0300 Subject: [PATCH] Remove some unnecessary proxy functions --- source/engineer/departuresdialog.cpp | 14 ++------------ source/engineer/departuresdialog.h | 2 -- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/source/engineer/departuresdialog.cpp b/source/engineer/departuresdialog.cpp index bea7f79..e1f99a3 100644 --- a/source/engineer/departuresdialog.cpp +++ b/source/engineer/departuresdialog.cpp @@ -57,22 +57,12 @@ void DeparturesDialog::group_selected(unsigned index) delete departures; departures = new Departures(layout, group); - departures->signal_departure_added.connect(sigc::mem_fun(this, &DeparturesDialog::departure_added)); - departures->signal_departure_removed.connect(sigc::mem_fun(this, &DeparturesDialog::departure_removed)); + departures->signal_departure_added.connect(sigc::hide<0>(sigc::mem_fun(this, &DeparturesDialog::update_rows))); + departures->signal_departure_removed.connect(sigc::hide<0>(sigc::mem_fun(this, &DeparturesDialog::update_rows))); update_rows(); } -void DeparturesDialog::departure_added(const Departures::Departure &) -{ - update_rows(); -} - -void DeparturesDialog::departure_removed(const Departures::Departure &) -{ - update_rows(); -} - void DeparturesDialog::update_rows() { const list &deps = departures->get_departures(); diff --git a/source/engineer/departuresdialog.h b/source/engineer/departuresdialog.h index 9dc99b8..098fab8 100644 --- a/source/engineer/departuresdialog.h +++ b/source/engineer/departuresdialog.h @@ -33,8 +33,6 @@ public: private: void group_selected(unsigned); - void departure_added(const R2C2::Departures::Departure &); - void departure_removed(const R2C2::Departures::Departure &); void update_rows(); }; -- 2.45.2