summaryrefslogtreecommitdiff
path: root/src/aircraft_cmd.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-08-12 21:36:43 +0000
committeryexo <yexo@openttd.org>2010-08-12 21:36:43 +0000
commit241d705406572d512710cf29316d7603210a6ecf (patch)
tree59314fc8cb6d6b97e425f36626da716ac9c3f4a5 /src/aircraft_cmd.cpp
parent089fc97387af79a8023677ac60ca1f6623da1dc5 (diff)
downloadopenttd-241d705406572d512710cf29316d7603210a6ecf.tar.xz
(svn r20474) -Cleanup: remove some unused code
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r--src/aircraft_cmd.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp
index 7ec87742f..b778dc620 100644
--- a/src/aircraft_cmd.cpp
+++ b/src/aircraft_cmd.cpp
@@ -141,28 +141,6 @@ static StationID FindNearestHangar(const Aircraft *v)
return index;
}
-#if 0
-/**
- * Check if given vehicle has a goto hangar in his orders
- * @param v vehicle to inquiry
- * @return true if vehicle v has an airport in the schedule, that has a hangar
- */
-static bool HaveHangarInOrderList(Aircraft *v)
-{
- const Order *order;
-
- FOR_VEHICLE_ORDERS(v, order) {
- const Station *st = Station::Get(order->station);
- if (st->owner == v->owner && (st->facilities & FACIL_AIRPORT)) {
- /* If an airport doesn't have a hangar, skip it */
- if (st->Airport()->nof_depots != 0) return true;
- }
- }
-
- return false;
-}
-#endif
-
SpriteID Aircraft::GetImage(Direction direction) const
{
uint8 spritenum = this->spritenum;