summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-03-18 15:20:49 +0000
committeryexo <yexo@openttd.org>2010-03-18 15:20:49 +0000
commite037512a6fc64c106531c1379a9c07f7040312f9 (patch)
tree142d8bd251636a46a55c9715845fae4825d7a8f1
parent1982307a05a341d66876421d3818d668599d43aa (diff)
downloadopenttd-e037512a6fc64c106531c1379a9c07f7040312f9.tar.xz
(svn r19451) -Cleanup: remove some unused code
-rw-r--r--src/airport.h2
-rw-r--r--src/build_vehicle_gui.cpp4
-rw-r--r--src/table/airport_defaults.h2
3 files changed, 1 insertions, 7 deletions
diff --git a/src/airport.h b/src/airport.h
index c6ddea0c9..e6eb5bbc2 100644
--- a/src/airport.h
+++ b/src/airport.h
@@ -187,6 +187,4 @@ struct AirportFTA {
const AirportFTAClass *GetAirport(const byte airport_type);
-extern const byte * const _airport_sections[];
-
#endif /* AIRPORT_H */
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp
index 74396bb4a..0f34ad575 100644
--- a/src/build_vehicle_gui.cpp
+++ b/src/build_vehicle_gui.cpp
@@ -768,7 +768,6 @@ struct BuildVehicleWindow : Window {
VehicleType vehicle_type;
union {
RailTypeByte railtype;
- AirportFTAClass::Flags flags;
RoadTypes roadtypes;
} filter;
bool descending_sort_order;
@@ -832,10 +831,7 @@ struct BuildVehicleWindow : Window {
case VEH_ROAD:
this->filter.roadtypes = (tile == INVALID_TILE) ? ROADTYPES_ALL : GetRoadTypes(tile);
case VEH_SHIP:
- break;
case VEH_AIRCRAFT:
- this->filter.flags =
- tile == INVALID_TILE ? AirportFTAClass::ALL : Station::GetByTile(tile)->Airport()->flags;
break;
}
diff --git a/src/table/airport_defaults.h b/src/table/airport_defaults.h
index f5e727c5c..cd9f195b3 100644
--- a/src/table/airport_defaults.h
+++ b/src/table/airport_defaults.h
@@ -16,7 +16,7 @@
* Definition of an airport tiles layout.
* @param x offset x of this tile
* @param y offset y of this tile
- * @param m AirportGfx of the tile
+ * @param m StationGfx of the tile
* @see _airport_specs
* @see AirportTileTable
*/