Remove unused global struct RefitDesc
Global struct RefitDesc was defined but never used. (cherry picked from commit 6826240f8170a93720a0f856f1a10d6dda1926c7)
This commit is contained in:
committed by
Jonathan G Rennison
parent
ca98e78c69
commit
315db4874a
@@ -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<RefitDesc> RefitList;
|
||||
typedef std::map<CargoID, uint> CapacitiesMap;
|
||||
|
||||
Vehicle *next; ///< pointer to the next vehicle in the chain
|
||||
|
||||
Reference in New Issue
Block a user