summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-08-14 20:37:15 +0000
committertron <tron@openttd.org>2006-08-14 20:37:15 +0000
commitab4091f1af3a59c320dbb67e0f17eb8ecc020f91 (patch)
tree2d31826820c930d7d765f59bf345a91c5ce0125b
parentbdb843950abd993cfb8053391faa8f23466f7a2b (diff)
downloadopenttd-ab4091f1af3a59c320dbb67e0f17eb8ecc020f91.tar.xz
(svn r5895) Remove dead code
-rw-r--r--vehicle_gui.c5
-rw-r--r--vehicle_gui.h10
2 files changed, 0 insertions, 15 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c
index c231e5f8d..4baf7f834 100644
--- a/vehicle_gui.c
+++ b/vehicle_gui.c
@@ -265,11 +265,6 @@ int ShowAdditionalText(int x, int y, int w, EngineID engine)
return 10;
}
-/************ Sorter functions *****************/
-int CDECL GeneralOwnerSorter(const void *a, const void *b)
-{
- return (*(const SortStruct*)a).owner - (*(const SortStruct*)b).owner;
-}
/* Variables you need to set before calling this function!
* 1. (byte)_internal_sort_type: sorting criteria to sort on
diff --git a/vehicle_gui.h b/vehicle_gui.h
index 74a1835f1..e6f0241e6 100644
--- a/vehicle_gui.h
+++ b/vehicle_gui.h
@@ -19,19 +19,10 @@ void ResortVehicleLists(void);
void BuildVehicleList(struct vehiclelist_d* vl, int type, PlayerID, StationID);
void SortVehicleList(struct vehiclelist_d *vl);
-int CDECL GeneralOwnerSorter(const void *a, const void *b);
-
#define PERIODIC_RESORT_DAYS 10
#define SORT_BY_UNSORTED 0
extern const StringID _vehicle_sort_listing[];
-enum VehicleSortTypes {
- VEHTRAIN = 0,
- VEHROAD = 1,
- VEHSHIP = 2,
- VEHAIRCRAFT = 3
-};
-
typedef struct Listing {
bool order; // Ascending/descending?
byte criteria; // Sorting criteria
@@ -64,5 +55,4 @@ void ChangeVehicleViewWindow(const Vehicle *from_v, const Vehicle *to_v);
int ShowAdditionalText(int x, int y, int w, EngineID engine_number);
-
#endif /* VEHICLE_GUI_H */