diff options
author | rubidium <rubidium@openttd.org> | 2009-05-17 11:18:34 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-05-17 11:18:34 +0000 |
commit | 88201ccd5cd1cc6a5def1ecc9e42291399cd3c37 (patch) | |
tree | 70959c2ccb22d7bee88ffc1f117dfb2877f58fbe /src/vehicle_base.h | |
parent | e7dedf4e1b2569a3f595f045a61d3d4bc144f3de (diff) | |
download | openttd-88201ccd5cd1cc6a5def1ecc9e42291399cd3c37.tar.xz |
(svn r16333) -Cleanup: remove a bunch of unused wrapper functions.
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r-- | src/vehicle_base.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/vehicle_base.h b/src/vehicle_base.h index 47e87d0a4..423da71af 100644 --- a/src/vehicle_base.h +++ b/src/vehicle_base.h @@ -642,21 +642,6 @@ struct InvalidVehicle : public Vehicle { void Tick() {} }; -static inline VehicleID GetMaxVehicleIndex() -{ - /* 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 Vehicle::GetPoolSize() - 1; -} - -static inline uint GetNumVehicles() -{ - return Vehicle::GetPoolSize(); -} - #define FOR_ALL_VEHICLES_FROM(v, start) for (v = Vehicle::Get(start); v != NULL; v = (v->index + 1U < Vehicle::GetPoolSize()) ? Vehicle::Get(v->index + 1) : NULL) if (v->IsValid()) #define FOR_ALL_VEHICLES(v) FOR_ALL_VEHICLES_FROM(v, 0) |