From 315db4874a73142ba2330fc883539077991b37f1 Mon Sep 17 00:00:00 2001 From: cirdan Date: Sat, 5 Mar 2016 15:33:34 +0100 Subject: [PATCH] Remove unused global struct RefitDesc Global struct RefitDesc was defined but never used. (cherry picked from commit 6826240f8170a93720a0f856f1a10d6dda1926c7) --- src/vehicle_base.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/vehicle_base.h b/src/vehicle_base.h index d7282a46c1..bcb1b38098 100644 --- a/src/vehicle_base.h +++ b/src/vehicle_base.h @@ -150,21 +150,9 @@ extern void FixOldVehicles(); struct GRFFile; -/** - * Simulated cargo type and capacity for prediction of future links. - */ -struct RefitDesc { - CargoID cargo; ///< Cargo type the vehicle will be carrying. - uint16 capacity; ///< Capacity the vehicle will have. - uint16 remaining; ///< Capacity remaining from before the previous refit. - RefitDesc(CargoID cargo, uint16 capacity, uint16 remaining) : - cargo(cargo), capacity(capacity), remaining(remaining) {} -}; - /** %Vehicle data structure. */ struct Vehicle : VehiclePool::PoolItem<&_vehicle_pool>, BaseVehicle, BaseConsist { private: - typedef std::list RefitList; typedef std::map CapacitiesMap; Vehicle *next; ///< pointer to the next vehicle in the chain