From: Mikko Rasa Date: Fri, 3 Apr 2015 22:36:53 +0000 (+0300) Subject: Remove some unnecessary proxy functions X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=95339ab1d15219938c7b2945f4f558dc162c9127;p=r2c2.git Remove some unnecessary proxy functions --- 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(); };