mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r21930) -Codechange: Remove unused vehicle GetTypeString() functions.
This commit is contained in:
parent
c778568f58
commit
b5e2e83823
@ -54,7 +54,6 @@ struct Aircraft : public SpecializedVehicle<Aircraft, VEH_AIRCRAFT> {
|
||||
/** We want to 'destruct' the right class. */
|
||||
virtual ~Aircraft() { this->PreDestructor(); }
|
||||
|
||||
const char *GetTypeString() const { return "aircraft"; }
|
||||
void MarkDirty();
|
||||
void UpdateDeltaXY(Direction direction);
|
||||
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. */
|
||||
virtual ~EffectVehicle() {}
|
||||
|
||||
const char *GetTypeString() const { return "special vehicle"; }
|
||||
void UpdateDeltaXY(Direction direction);
|
||||
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.
|
||||
|
||||
const char *GetTypeString() const { return "road vehicle"; }
|
||||
void MarkDirty();
|
||||
void UpdateDeltaXY(Direction direction);
|
||||
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. */
|
||||
virtual ~Ship() { this->PreDestructor(); }
|
||||
|
||||
const char *GetTypeString() const { return "ship"; }
|
||||
void MarkDirty();
|
||||
void UpdateDeltaXY(Direction direction);
|
||||
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.
|
||||
|
||||
const char *GetTypeString() const { return "train"; }
|
||||
void MarkDirty();
|
||||
void UpdateDeltaXY(Direction direction);
|
||||
ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_TRAIN_INC : EXPENSES_TRAIN_RUN; }
|
||||
|
@ -258,12 +258,6 @@ public:
|
||||
|
||||
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
|
||||
*
|
||||
@ -916,7 +910,6 @@ struct DisasterVehicle : public SpecializedVehicle<DisasterVehicle, VEH_DISASTER
|
||||
/** We want to 'destruct' the right class. */
|
||||
virtual ~DisasterVehicle() {}
|
||||
|
||||
const char *GetTypeString() const { return "disaster vehicle"; }
|
||||
void UpdateDeltaXY(Direction direction);
|
||||
bool Tick();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user