Mercurial > hg > openttd
changeset 17191:2edc672accf0 draft
(svn r21930) -Codechange: Remove unused vehicle GetTypeString() functions.
author | alberth <alberth@openttd.org> |
---|---|
date | Sun, 30 Jan 2011 21:32:21 +0000 |
parents | d66fa6a6c96b |
children | 677a4159947b |
files | src/aircraft.h src/effectvehicle_base.h src/roadveh.h src/ship.h src/train.h src/vehicle_base.h |
diffstat | 6 files changed, 0 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/src/aircraft.h +++ b/src/aircraft.h @@ -54,7 +54,6 @@ /** 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; }
--- a/src/effectvehicle_base.h +++ b/src/effectvehicle_base.h @@ -31,7 +31,6 @@ /** We want to 'destruct' the right class. */ virtual ~EffectVehicle() {} - const char *GetTypeString() const { return "special vehicle"; } void UpdateDeltaXY(Direction direction); bool Tick(); };
--- a/src/roadveh.h +++ b/src/roadveh.h @@ -98,7 +98,6 @@ 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; }
--- a/src/ship.h +++ b/src/ship.h @@ -27,7 +27,6 @@ /** 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; }
--- a/src/train.h +++ b/src/train.h @@ -91,7 +91,6 @@ 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; }
--- a/src/vehicle_base.h +++ b/src/vehicle_base.h @@ -259,12 +259,6 @@ 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 * * This method marks the area of the vehicle on the screen as dirty. @@ -916,7 +910,6 @@ /** We want to 'destruct' the right class. */ virtual ~DisasterVehicle() {} - const char *GetTypeString() const { return "disaster vehicle"; } void UpdateDeltaXY(Direction direction); bool Tick(); };