summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-07-20 19:58:33 +0000
committerfrosch <frosch@openttd.org>2009-07-20 19:58:33 +0000
commitd5a4c893656f61950595c057c7643f4082228d47 (patch)
treeae65d69eb2c0ef06cd95925420d1e3fb1c11c382 /src/vehicle.cpp
parente3752f3ef82278a34fe5cce5515e240589465c77 (diff)
downloadopenttd-d5a4c893656f61950595c057c7643f4082228d47.tar.xz
(svn r16894) -Codechange: Add [Specialised]Vehicle::Last().
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index a92931706..3562a2b58 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -453,18 +453,6 @@ void InitializeVehicles()
ResetVehiclePosHash();
}
-Vehicle *GetLastVehicleInChain(Vehicle *v)
-{
- while (v->Next() != NULL) v = v->Next();
- return v;
-}
-
-const Vehicle *GetLastVehicleInChain(const Vehicle *v)
-{
- while (v->Next() != NULL) v = v->Next();
- return v;
-}
-
uint CountVehiclesInChain(const Vehicle *v)
{
uint count = 0;