(svn r21930) -Codechange: Remove unused vehicle GetTypeString() functions.
This commit is contained in:
		@@ -54,7 +54,6 @@ struct Aircraft : public SpecializedVehicle<Aircraft, VEH_AIRCRAFT> {
 | 
				
			|||||||
	/** We want to 'destruct' the right class. */
 | 
						/** We want to 'destruct' the right class. */
 | 
				
			||||||
	virtual ~Aircraft() { this->PreDestructor(); }
 | 
						virtual ~Aircraft() { this->PreDestructor(); }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	const char *GetTypeString() const { return "aircraft"; }
 | 
					 | 
				
			||||||
	void MarkDirty();
 | 
						void MarkDirty();
 | 
				
			||||||
	void UpdateDeltaXY(Direction direction);
 | 
						void UpdateDeltaXY(Direction direction);
 | 
				
			||||||
	ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_AIRCRAFT_INC : EXPENSES_AIRCRAFT_RUN; }
 | 
						ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_AIRCRAFT_INC : EXPENSES_AIRCRAFT_RUN; }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -31,7 +31,6 @@ struct EffectVehicle : public SpecializedVehicle<EffectVehicle, VEH_EFFECT> {
 | 
				
			|||||||
	/** We want to 'destruct' the right class. */
 | 
						/** We want to 'destruct' the right class. */
 | 
				
			||||||
	virtual ~EffectVehicle() {}
 | 
						virtual ~EffectVehicle() {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	const char *GetTypeString() const { return "special vehicle"; }
 | 
					 | 
				
			||||||
	void UpdateDeltaXY(Direction direction);
 | 
						void UpdateDeltaXY(Direction direction);
 | 
				
			||||||
	bool Tick();
 | 
						bool Tick();
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -98,7 +98,6 @@ struct RoadVehicle : public GroundVehicle<RoadVehicle, VEH_ROAD> {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	friend struct GroundVehicle<RoadVehicle, VEH_ROAD>; // GroundVehicle needs to use the acceleration functions defined at RoadVehicle.
 | 
						friend struct GroundVehicle<RoadVehicle, VEH_ROAD>; // GroundVehicle needs to use the acceleration functions defined at RoadVehicle.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	const char *GetTypeString() const { return "road vehicle"; }
 | 
					 | 
				
			||||||
	void MarkDirty();
 | 
						void MarkDirty();
 | 
				
			||||||
	void UpdateDeltaXY(Direction direction);
 | 
						void UpdateDeltaXY(Direction direction);
 | 
				
			||||||
	ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_ROADVEH_INC : EXPENSES_ROADVEH_RUN; }
 | 
						ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_ROADVEH_INC : EXPENSES_ROADVEH_RUN; }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -27,7 +27,6 @@ struct Ship: public SpecializedVehicle<Ship, VEH_SHIP> {
 | 
				
			|||||||
	/** We want to 'destruct' the right class. */
 | 
						/** We want to 'destruct' the right class. */
 | 
				
			||||||
	virtual ~Ship() { this->PreDestructor(); }
 | 
						virtual ~Ship() { this->PreDestructor(); }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	const char *GetTypeString() const { return "ship"; }
 | 
					 | 
				
			||||||
	void MarkDirty();
 | 
						void MarkDirty();
 | 
				
			||||||
	void UpdateDeltaXY(Direction direction);
 | 
						void UpdateDeltaXY(Direction direction);
 | 
				
			||||||
	ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_SHIP_INC : EXPENSES_SHIP_RUN; }
 | 
						ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_SHIP_INC : EXPENSES_SHIP_RUN; }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -91,7 +91,6 @@ struct Train : public GroundVehicle<Train, VEH_TRAIN> {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	friend struct GroundVehicle<Train, VEH_TRAIN>; // GroundVehicle needs to use the acceleration functions defined at Train.
 | 
						friend struct GroundVehicle<Train, VEH_TRAIN>; // GroundVehicle needs to use the acceleration functions defined at Train.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	const char *GetTypeString() const { return "train"; }
 | 
					 | 
				
			||||||
	void MarkDirty();
 | 
						void MarkDirty();
 | 
				
			||||||
	void UpdateDeltaXY(Direction direction);
 | 
						void UpdateDeltaXY(Direction direction);
 | 
				
			||||||
	ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_TRAIN_INC : EXPENSES_TRAIN_RUN; }
 | 
						ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_TRAIN_INC : EXPENSES_TRAIN_RUN; }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -258,12 +258,6 @@ public:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	void HandleLoading(bool mode = false);
 | 
						void HandleLoading(bool mode = false);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/**
 | 
					 | 
				
			||||||
	 * Get a string 'representation' of the vehicle type.
 | 
					 | 
				
			||||||
	 * @return the string representation.
 | 
					 | 
				
			||||||
	 */
 | 
					 | 
				
			||||||
	virtual const char *GetTypeString() const { return "base vehicle"; }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	/**
 | 
						/**
 | 
				
			||||||
	 * Marks the vehicles to be redrawn and updates cached variables
 | 
						 * Marks the vehicles to be redrawn and updates cached variables
 | 
				
			||||||
	 *
 | 
						 *
 | 
				
			||||||
@@ -916,7 +910,6 @@ struct DisasterVehicle : public SpecializedVehicle<DisasterVehicle, VEH_DISASTER
 | 
				
			|||||||
	/** We want to 'destruct' the right class. */
 | 
						/** We want to 'destruct' the right class. */
 | 
				
			||||||
	virtual ~DisasterVehicle() {}
 | 
						virtual ~DisasterVehicle() {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	const char *GetTypeString() const { return "disaster vehicle"; }
 | 
					 | 
				
			||||||
	void UpdateDeltaXY(Direction direction);
 | 
						void UpdateDeltaXY(Direction direction);
 | 
				
			||||||
	bool Tick();
 | 
						bool Tick();
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user