mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-04 05:15:21 +00:00
(svn r19451) -Cleanup: remove some unused code
This commit is contained in:
parent
1982307a05
commit
e037512a6f
@ -187,6 +187,4 @@ struct AirportFTA {
|
|||||||
|
|
||||||
const AirportFTAClass *GetAirport(const byte airport_type);
|
const AirportFTAClass *GetAirport(const byte airport_type);
|
||||||
|
|
||||||
extern const byte * const _airport_sections[];
|
|
||||||
|
|
||||||
#endif /* AIRPORT_H */
|
#endif /* AIRPORT_H */
|
||||||
|
@ -768,7 +768,6 @@ struct BuildVehicleWindow : Window {
|
|||||||
VehicleType vehicle_type;
|
VehicleType vehicle_type;
|
||||||
union {
|
union {
|
||||||
RailTypeByte railtype;
|
RailTypeByte railtype;
|
||||||
AirportFTAClass::Flags flags;
|
|
||||||
RoadTypes roadtypes;
|
RoadTypes roadtypes;
|
||||||
} filter;
|
} filter;
|
||||||
bool descending_sort_order;
|
bool descending_sort_order;
|
||||||
@ -832,10 +831,7 @@ struct BuildVehicleWindow : Window {
|
|||||||
case VEH_ROAD:
|
case VEH_ROAD:
|
||||||
this->filter.roadtypes = (tile == INVALID_TILE) ? ROADTYPES_ALL : GetRoadTypes(tile);
|
this->filter.roadtypes = (tile == INVALID_TILE) ? ROADTYPES_ALL : GetRoadTypes(tile);
|
||||||
case VEH_SHIP:
|
case VEH_SHIP:
|
||||||
break;
|
|
||||||
case VEH_AIRCRAFT:
|
case VEH_AIRCRAFT:
|
||||||
this->filter.flags =
|
|
||||||
tile == INVALID_TILE ? AirportFTAClass::ALL : Station::GetByTile(tile)->Airport()->flags;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
* Definition of an airport tiles layout.
|
* Definition of an airport tiles layout.
|
||||||
* @param x offset x of this tile
|
* @param x offset x of this tile
|
||||||
* @param y offset y 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 _airport_specs
|
||||||
* @see AirportTileTable
|
* @see AirportTileTable
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user