From 88201ccd5cd1cc6a5def1ecc9e42291399cd3c37 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 17 May 2009 11:18:34 +0000 Subject: (svn r16333) -Cleanup: remove a bunch of unused wrapper functions. --- src/station_base.h | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/station_base.h') diff --git a/src/station_base.h b/src/station_base.h index 876d0d345..2fa332a70 100644 --- a/src/station_base.h +++ b/src/station_base.h @@ -204,21 +204,6 @@ public: uint GetCatchmentRadius() const; }; -static inline StationID GetMaxStationIndex() -{ - /* TODO - This isn't the real content of the function, but - * with the new pool-system this will be replaced with one that - * _really_ returns the highest index. Now it just returns - * the next safe value we are sure about everything is below. - */ - return Station::GetPoolSize() - 1; -} - -static inline uint GetNumStations() -{ - return Station::GetPoolSize(); -} - #define FOR_ALL_STATIONS_FROM(st, start) for (st = Station::Get(start); st != NULL; st = (st->index + 1U < Station::GetPoolSize()) ? Station::Get(st->index + 1U) : NULL) if (st->IsValid()) #define FOR_ALL_STATIONS(st) FOR_ALL_STATIONS_FROM(st, 0) -- cgit v1.2.3-54-g00ecf