]> git.tdb.fi Git - r2c2.git/commitdiff
Remove some unnecessary proxy functions
authorMikko Rasa <tdb@tdb.fi>
Fri, 3 Apr 2015 22:36:53 +0000 (01:36 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 3 Apr 2015 22:36:53 +0000 (01:36 +0300)
source/engineer/departuresdialog.cpp
source/engineer/departuresdialog.h

index bea7f79281b58fa98a3ccf29182310acacfbc80f..e1f99a399f01345a11323f2c44750b0c7a0b5cf9 100644 (file)
@@ -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<Departures::Departure> &deps = departures->get_departures();
index 9dc99b84922a145ca1b6a161dd9f36f1036e64c8..098fab82bf614b319531b4e0767393a1bcce6d65 100644 (file)
@@ -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();
 };