diff options
author | smatz <smatz@openttd.org> | 2008-09-25 09:50:31 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-09-25 09:50:31 +0000 |
commit | e4242c8735a36934fcbe93124f1026ffa3ad83b8 (patch) | |
tree | 4dc8e69996981f240b3134cd29a31af3588acd00 /src | |
parent | 86f1a98ac846d82e09918f2a7f843160eaaad886 (diff) | |
download | openttd-e4242c8735a36934fcbe93124f1026ffa3ad83b8.tar.xz |
(svn r14398) -Cleanup (r14395): unused function sneaked in
Diffstat (limited to 'src')
-rw-r--r-- | src/vehicle_base.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/vehicle_base.h b/src/vehicle_base.h index 4ad13c306..d0bc4188c 100644 --- a/src/vehicle_base.h +++ b/src/vehicle_base.h @@ -657,19 +657,6 @@ static inline Order *GetVehicleOrder(const Vehicle *v, int index) return order; } - -/** Returns VehicleOrderID of selected order */ -static inline VehicleOrderID GetVehicleOrderID(const Vehicle *v, OrderID order) -{ - VehicleOrderID ret = 0; - - for (const Order *o = v->orders; o != NULL; o = o->next, ret++) { - if (o->index == order) return ret; - } - - return INVALID_VEH_ORDER_ID; -} - /** * Returns the last order of a vehicle, or NULL if it doesn't exists * @param v Vehicle to query |