From 75d63af2ae35a8da6f1fb3ec1db6bf630ac66d0a Mon Sep 17 00:00:00 2001 From: smatz Date: Thu, 25 Sep 2008 09:50:31 +0000 Subject: [PATCH] (svn r14398) -Cleanup (r14395): unused function sneaked in --- src/vehicle_base.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/vehicle_base.h b/src/vehicle_base.h index 4ad13c3067..d0bc4188cb 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