]> git.tdb.fi Git - r2c2.git/commitdiff
Remove a function that was never used
authorMikko Rasa <tdb@tdb.fi>
Tue, 15 Apr 2014 15:36:36 +0000 (18:36 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 15 Apr 2014 15:36:36 +0000 (18:36 +0300)
source/libr2c2/trainrouter.cpp
source/libr2c2/trainrouter.h

index 44a97f52c3e3606ae6d87eeed2c791cc93ab126f..c55105026e3710e859692c934a3a1353f3fb5662 100644 (file)
@@ -385,17 +385,6 @@ void TrainRouter::train_advanced(Block &block)
        }
 }
 
-const Route *TrainRouter::get_route_for_block(const Block &block) const
-{
-       const set<Track *> &tracks = block.get_tracks();
-       for(RouteList::const_iterator i=routes.begin(); i!=routes.end(); ++i)
-               for(set<Track *>::const_iterator j=tracks.begin(); j!=tracks.end(); ++j)
-                       if((*i)->has_track(**j))
-                               return *i;
-
-       return 0;
-}
-
 void TrainRouter::create_metrics()
 {
        for(vector<TrainRouteMetric *>::iterator i=metrics.begin(); i!=metrics.end(); ++i)
index 1c523d89e96fe1d2d1c7bb04fa9d4f141d95b76b..3c23496710a7b8e3b8df004ca40f1a988faf5e26 100644 (file)
@@ -91,7 +91,6 @@ public:
 private:
        void block_reserved(Block &, Train *);
        void train_advanced(Block &);
-       const Route *get_route_for_block(const Block &) const;
 
        void create_metrics();
        Route *create_lead_route(Route *, const Route *);