diff options
author | yexo <yexo@openttd.org> | 2010-08-12 21:36:43 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-08-12 21:36:43 +0000 |
commit | 241d705406572d512710cf29316d7603210a6ecf (patch) | |
tree | 59314fc8cb6d6b97e425f36626da716ac9c3f4a5 /src/aircraft_cmd.cpp | |
parent | 089fc97387af79a8023677ac60ca1f6623da1dc5 (diff) | |
download | openttd-241d705406572d512710cf29316d7603210a6ecf.tar.xz |
(svn r20474) -Cleanup: remove some unused code
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r-- | src/aircraft_cmd.cpp | 22 |
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; |