(svn r16333) -Cleanup: remove a bunch of unused wrapper functions.

This commit is contained in:
rubidium
2009-05-17 11:18:34 +00:00
parent f1955333c9
commit 1cc82de384
6 changed files with 0 additions and 75 deletions

View File

@@ -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)