(svn r17693) -Cleanup: remove some unneeded includes
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
#include <squirrel.h>
|
||||
#include "ai_abstractlist.hpp"
|
||||
#include "../../debug.h"
|
||||
#include "../../core/alloc_func.hpp"
|
||||
#include "../../script/squirrel.hpp"
|
||||
|
||||
/**
|
||||
|
@@ -13,9 +13,7 @@
|
||||
#include "ai_station.hpp"
|
||||
#include "../../station_base.h"
|
||||
#include "../../company_func.h"
|
||||
#include "../../command_type.h"
|
||||
#include "../../town.h"
|
||||
#include "../../economy_func.h"
|
||||
|
||||
/* static */ bool AIAirport::IsValidAirportType(AirportType type)
|
||||
{
|
||||
|
@@ -10,13 +10,11 @@
|
||||
/** @file ai_basestation.cpp Implementation of AIBaseStation. */
|
||||
|
||||
#include "ai_basestation.hpp"
|
||||
#include "../../base_station_base.h"
|
||||
#include "../../station_base.h"
|
||||
#include "../../command_func.h"
|
||||
#include "../../string_func.h"
|
||||
#include "../../strings_func.h"
|
||||
#include "../../company_func.h"
|
||||
#include "../../core/alloc_func.hpp"
|
||||
#include "table/strings.h"
|
||||
|
||||
/* static */ bool AIBaseStation::IsValidBaseStation(StationID station_id)
|
||||
|
@@ -16,7 +16,6 @@
|
||||
#include "../../strings_func.h"
|
||||
#include "../../core/alloc_func.hpp"
|
||||
#include "../../economy_func.h"
|
||||
#include "../../settings_type.h"
|
||||
#include "../../date_func.h"
|
||||
|
||||
/* static */ bool AIBridge::IsValidBridge(BridgeID bridge_id)
|
||||
|
@@ -12,7 +12,6 @@
|
||||
#include "ai_bridgelist.hpp"
|
||||
#include "ai_bridge.hpp"
|
||||
#include "../../bridge.h"
|
||||
#include "../../date_func.h"
|
||||
|
||||
AIBridgeList::AIBridgeList()
|
||||
{
|
||||
|
@@ -12,7 +12,6 @@
|
||||
#include "ai_cargolist.hpp"
|
||||
#include "ai_industry.hpp"
|
||||
#include "../../cargotype.h"
|
||||
#include "../../tile_type.h"
|
||||
#include "../../industry.h"
|
||||
|
||||
AICargoList::AICargoList()
|
||||
|
@@ -11,7 +11,6 @@
|
||||
|
||||
#include "ai_company.hpp"
|
||||
#include "ai_error.hpp"
|
||||
#include "ai_log.hpp"
|
||||
#include "../../command_func.h"
|
||||
#include "../../company_func.h"
|
||||
#include "../../company_base.h"
|
||||
@@ -19,7 +18,6 @@
|
||||
#include "../../economy_func.h"
|
||||
#include "../../strings_func.h"
|
||||
#include "../../tile_map.h"
|
||||
#include "../../core/alloc_func.hpp"
|
||||
#include "../../string_func.h"
|
||||
#include "../../settings_func.h"
|
||||
#include "table/strings.h"
|
||||
|
@@ -10,7 +10,6 @@
|
||||
/** @file ai_depotlist.cpp Implementation of AIDepotList and friends. */
|
||||
|
||||
#include "ai_depotlist.hpp"
|
||||
#include "../../tile_map.h"
|
||||
#include "../../company_func.h"
|
||||
#include "../../depot_base.h"
|
||||
#include "../../station_base.h"
|
||||
|
@@ -14,7 +14,6 @@
|
||||
#include "../../command_type.h"
|
||||
#include "../../strings_func.h"
|
||||
#include "../../settings_type.h"
|
||||
#include "../../rail.h"
|
||||
#include "../../engine_base.h"
|
||||
#include "../../articulated_vehicles.h"
|
||||
#include "table/strings.h"
|
||||
|
@@ -16,7 +16,6 @@
|
||||
#include "../../group.h"
|
||||
#include "../../string_func.h"
|
||||
#include "../../strings_func.h"
|
||||
#include "../../core/alloc_func.hpp"
|
||||
#include "../../command_func.h"
|
||||
#include "../../autoreplace_func.h"
|
||||
#include "../../settings_func.h"
|
||||
|
@@ -12,7 +12,6 @@
|
||||
#include "ai_industry.hpp"
|
||||
#include "ai_cargo.hpp"
|
||||
#include "ai_map.hpp"
|
||||
#include "../../tile_type.h"
|
||||
#include "../../industry.h"
|
||||
#include "../../strings_func.h"
|
||||
#include "../../station_base.h"
|
||||
|
@@ -10,7 +10,6 @@
|
||||
/** @file ai_industrylist.cpp Implementation of AIIndustryList and friends. */
|
||||
|
||||
#include "ai_industrylist.hpp"
|
||||
#include "../../tile_type.h"
|
||||
#include "../../industry.h"
|
||||
|
||||
AIIndustryList::AIIndustryList()
|
||||
|
@@ -12,7 +12,6 @@
|
||||
#include "ai_industrytype.hpp"
|
||||
#include "ai_map.hpp"
|
||||
#include "../../command_type.h"
|
||||
#include "../../settings_type.h"
|
||||
#include "../../strings_func.h"
|
||||
#include "../../industry.h"
|
||||
|
||||
|
@@ -10,7 +10,6 @@
|
||||
/** @file ai_industrytypelist.cpp Implementation of AIIndustryTypeList. */
|
||||
|
||||
#include "ai_industrytypelist.hpp"
|
||||
#include "../../tile_type.h"
|
||||
#include "../../industry.h"
|
||||
|
||||
AIIndustryTypeList::AIIndustryTypeList()
|
||||
|
@@ -14,7 +14,6 @@
|
||||
#include "../../script/squirrel.hpp"
|
||||
#include "../../company_base.h"
|
||||
|
||||
#include "ai_log.hpp"
|
||||
#include "table/strings.h"
|
||||
#include "../ai.hpp"
|
||||
#include "../ai_storage.hpp"
|
||||
|
@@ -9,9 +9,7 @@
|
||||
|
||||
/** @file ai_order.cpp Implementation of AIOrder. */
|
||||
|
||||
#include "ai_order.hpp"
|
||||
#include "ai_vehicle.hpp"
|
||||
#include "ai_log.hpp"
|
||||
#include "../ai_instance.hpp"
|
||||
#include "../../debug.h"
|
||||
#include "../../vehicle_base.h"
|
||||
|
@@ -9,13 +9,11 @@
|
||||
|
||||
/** @file ai_road.cpp Implementation of AIRoad. */
|
||||
|
||||
#include "ai_road.hpp"
|
||||
#include "ai_map.hpp"
|
||||
#include "ai_station.hpp"
|
||||
#include "ai_cargo.hpp"
|
||||
#include "../../station_base.h"
|
||||
#include "../../command_type.h"
|
||||
#include "../../settings_type.h"
|
||||
#include "../../company_func.h"
|
||||
#include "../../script/squirrel_helper_type.hpp"
|
||||
|
||||
|
@@ -10,7 +10,6 @@
|
||||
/** @file ai_sign.cpp Implementation of AISign. */
|
||||
|
||||
#include "ai_sign.hpp"
|
||||
#include "ai_log.hpp"
|
||||
#include "table/strings.h"
|
||||
#include "../ai_instance.hpp"
|
||||
#include "../../command_func.h"
|
||||
|
@@ -13,15 +13,11 @@
|
||||
#include "ai_cargo.hpp"
|
||||
#include "ai_map.hpp"
|
||||
#include "ai_town.hpp"
|
||||
#include "../../command_func.h"
|
||||
#include "../../debug.h"
|
||||
#include "../../station_base.h"
|
||||
#include "../../roadstop_base.h"
|
||||
#include "../../string_func.h"
|
||||
#include "../../strings_func.h"
|
||||
#include "../../company_func.h"
|
||||
#include "../../town.h"
|
||||
#include "table/strings.h"
|
||||
|
||||
/* static */ bool AIStation::IsValidStation(StationID station_id)
|
||||
{
|
||||
|
@@ -11,10 +11,8 @@
|
||||
|
||||
#include "ai_subsidy.hpp"
|
||||
#include "ai_date.hpp"
|
||||
#include "ai_log.hpp"
|
||||
#include "../../subsidy_base.h"
|
||||
#include "../../station_base.h"
|
||||
#include "../../cargotype.h"
|
||||
|
||||
/* static */ bool AISubsidy::IsValidSubsidy(SubsidyID subsidy_id)
|
||||
{
|
||||
|
@@ -10,7 +10,6 @@
|
||||
/** @file ai_subsidylist.cpp Implementation of AISubsidyList. */
|
||||
|
||||
#include "ai_subsidylist.hpp"
|
||||
#include "ai_subsidy.hpp"
|
||||
#include "../../subsidy_base.h"
|
||||
|
||||
AISubsidyList::AISubsidyList()
|
||||
|
@@ -12,7 +12,6 @@
|
||||
#include "ai_tile.hpp"
|
||||
#include "ai_map.hpp"
|
||||
#include "ai_town.hpp"
|
||||
#include "ai_log.hpp"
|
||||
#include "../../station_func.h"
|
||||
#include "../../company_func.h"
|
||||
#include "../../road_map.h"
|
||||
|
@@ -11,10 +11,8 @@
|
||||
|
||||
#include "ai_tilelist.hpp"
|
||||
#include "ai_industry.hpp"
|
||||
#include "../../tile_map.h"
|
||||
#include "../../industry.h"
|
||||
#include "../../station_base.h"
|
||||
#include "../../settings_type.h"
|
||||
|
||||
void AITileList::FixRectangleSpan(TileIndex &t1, TileIndex &t2)
|
||||
{
|
||||
|
@@ -13,10 +13,8 @@
|
||||
#include "ai_map.hpp"
|
||||
#include "ai_cargo.hpp"
|
||||
#include "ai_error.hpp"
|
||||
#include "../../command_type.h"
|
||||
#include "../../town.h"
|
||||
#include "../../strings_func.h"
|
||||
#include "../../core/alloc_func.hpp"
|
||||
#include "../../company_func.h"
|
||||
#include "../../station_base.h"
|
||||
#include "table/strings.h"
|
||||
|
@@ -14,8 +14,6 @@
|
||||
#include "../ai_instance.hpp"
|
||||
#include "../../tunnel_map.h"
|
||||
#include "../../command_func.h"
|
||||
#include "../../tunnelbridge.h"
|
||||
#include "../../road_func.h"
|
||||
|
||||
/* static */ bool AITunnel::IsTunnelTile(TileIndex tile)
|
||||
{
|
||||
|
@@ -13,9 +13,7 @@
|
||||
#include "ai_group.hpp"
|
||||
#include "ai_map.hpp"
|
||||
#include "ai_station.hpp"
|
||||
#include "ai_vehicle.hpp"
|
||||
#include "../../company_func.h"
|
||||
#include "../../depot_base.h"
|
||||
#include "../../depot_map.h"
|
||||
#include "../../vehicle_base.h"
|
||||
|
||||
|
@@ -11,13 +11,8 @@
|
||||
|
||||
#include "ai_waypoint.hpp"
|
||||
#include "ai_rail.hpp"
|
||||
#include "../../command_func.h"
|
||||
#include "../../string_func.h"
|
||||
#include "../../strings_func.h"
|
||||
#include "../../company_func.h"
|
||||
#include "../../waypoint_base.h"
|
||||
#include "../../core/alloc_func.hpp"
|
||||
#include "table/strings.h"
|
||||
|
||||
/* static */ bool AIWaypoint::IsValidWaypoint(StationID waypoint_id)
|
||||
{
|
||||
|
@@ -11,7 +11,6 @@
|
||||
|
||||
#include "ai_waypointlist.hpp"
|
||||
#include "ai_vehicle.hpp"
|
||||
#include "ai_waypoint.hpp"
|
||||
#include "../../company_func.h"
|
||||
#include "../../vehicle_base.h"
|
||||
#include "../../waypoint_base.h"
|
||||
|
Reference in New Issue
Block a user