(svn r14398) -Cleanup (r14395): unused function sneaked in

This commit is contained in:
smatz 2008-09-25 09:50:31 +00:00
parent 48ece47bd9
commit 75d63af2ae

View File

@ -657,19 +657,6 @@ static inline Order *GetVehicleOrder(const Vehicle *v, int index)
return order; 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 * Returns the last order of a vehicle, or NULL if it doesn't exists
* @param v Vehicle to query * @param v Vehicle to query