summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-05-26 16:23:23 +0000
committerpeter1138 <peter1138@openttd.org>2008-05-26 16:23:23 +0000
commit02b5ffa13fef5709001a1967620ee3330b462d79 (patch)
treedc047e46ce7eb5ed01a0e32b973c3cc1aa5a6719 /src/vehicle.cpp
parent5a0fb3ca9789b5ee10d3ebdc76b17a602f5fd54f (diff)
downloadopenttd-02b5ffa13fef5709001a1967620ee3330b462d79.tar.xz
(svn r13266) -Codechange: Use SmallVector in GUIList
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index f5bb940f7..54c379edd 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -1335,35 +1335,6 @@ void BuildDepotVehicleList(VehicleType type, TileIndex tile, VehicleList *engine
}
/**
- * @param sort_list list to store the list in. Either NULL or the length length_of_array tells
- * @param length_of_array informs the length allocated for sort_list. This is not the same as the number of vehicles in the list. Needs to be 0 when sort_list is NULL
- * @param type type of vehicle
- * @param owner PlayerID of owner to generate a list for
- * @param index This parameter has different meanings depending on window_type
- * <ul>
- * <li>VLW_STATION_LIST: index of station to generate a list for</li>
- * <li>VLW_SHARED_ORDERS: index of order to generate a list for<li>
- * <li>VLW_STANDARD: not used<li>
- * <li>VLW_DEPOT_LIST: TileIndex of the depot/hangar to make the list for</li>
- * <li>VLW_GROUP_LIST: index of group to generate a list for</li>
- * </ul>
- * @param window_type tells what kind of window the list is for. Use the VLW flags in vehicle_gui.h
- * @return the number of vehicles added to the list
- */
-uint GenerateVehicleSortList(const Vehicle ***sort_list, uint16 *length_of_array, VehicleType type, PlayerID owner, uint32 index, uint16 window_type)
-{
- VehicleList list;
- GenerateVehicleSortList(&list, type, owner, index, window_type);
-
- if (list.Length() > 0) {
- *sort_list = ReallocT(*sort_list, list.Length());
- memcpy(*sort_list, list.Begin(), sizeof(list.Begin()) * list.Length());
- }
-
- return list.Length();
-}
-
-/**
* Generate a list of vehicles based on window type.
* @param list Pointer to list to add vehicles to
* @param type Type of vehicle