diff --git a/src/ai/ai_info.cpp b/src/ai/ai_info.cpp --- a/src/ai/ai_info.cpp +++ b/src/ai/ai_info.cpp @@ -15,7 +15,6 @@ #include "../debug.h" #include "../string_func.h" #include "../rev.h" -#include #include "../safeguards.h" diff --git a/src/blitter/factory.hpp b/src/blitter/factory.hpp --- a/src/blitter/factory.hpp +++ b/src/blitter/factory.hpp @@ -13,7 +13,6 @@ #include "base.hpp" #include "../debug.h" #include "../string_func.h" -#include /** diff --git a/src/cargomonitor.h b/src/cargomonitor.h --- a/src/cargomonitor.h +++ b/src/cargomonitor.h @@ -15,7 +15,6 @@ #include "industry.h" #include "town.h" #include "core/overflowsafe_type.hpp" -#include struct Station; diff --git a/src/cargopacket.h b/src/cargopacket.h --- a/src/cargopacket.h +++ b/src/cargopacket.h @@ -18,7 +18,6 @@ #include "vehicle_type.h" #include "core/multimap.hpp" #include "saveload/saveload.h" -#include /** Unique identifier for a single cargo packet. */ typedef uint32 CargoPacketID; diff --git a/src/command.cpp b/src/command.cpp --- a/src/command.cpp +++ b/src/command.cpp @@ -59,8 +59,6 @@ #include "misc/endian_buffer.hpp" #include "string_func.h" -#include - #include "table/strings.h" #include "safeguards.h" diff --git a/src/company_base.h b/src/company_base.h --- a/src/company_base.h +++ b/src/company_base.h @@ -17,7 +17,6 @@ #include "timer/timer_game_calendar.h" #include "settings_type.h" #include "group.h" -#include /** Statistics about the economy. */ struct CompanyEconomyEntry { diff --git a/src/console_gui.cpp b/src/console_gui.cpp --- a/src/console_gui.cpp +++ b/src/console_gui.cpp @@ -22,7 +22,6 @@ #include "video/video_driver.hpp" #include "timer/timer.h" #include "timer/timer_window.h" -#include #include "widgets/console_widget.h" diff --git a/src/console_internal.h b/src/console_internal.h --- a/src/console_internal.h +++ b/src/console_internal.h @@ -11,7 +11,6 @@ #define CONSOLE_INTERNAL_H #include "gfx_type.h" -#include static const uint ICON_CMDLN_SIZE = 1024; ///< maximum length of a typed in command static const uint ICON_MAX_STREAMSIZE = 2048; ///< maximum length of a totally expanded command diff --git a/src/core/multimap.hpp b/src/core/multimap.hpp --- a/src/core/multimap.hpp +++ b/src/core/multimap.hpp @@ -10,9 +10,6 @@ #ifndef MULTIMAP_HPP #define MULTIMAP_HPP -#include -#include - template class MultiMap; diff --git a/src/driver.h b/src/driver.h --- a/src/driver.h +++ b/src/driver.h @@ -12,7 +12,6 @@ #include "core/enum_type.hpp" #include "string_type.h" -#include const char *GetDriverParam(const StringList &parm, const char *name); bool GetDriverParamBool(const StringList &parm, const char *name); diff --git a/src/error.h b/src/error.h --- a/src/error.h +++ b/src/error.h @@ -10,7 +10,6 @@ #ifndef ERROR_H #define ERROR_H -#include #include "strings_type.h" #include "company_type.h" #include "command_type.h" diff --git a/src/error_gui.cpp b/src/error_gui.cpp --- a/src/error_gui.cpp +++ b/src/error_gui.cpp @@ -27,7 +27,6 @@ #include "widgets/error_widget.h" #include "table/strings.h" -#include #include "safeguards.h" diff --git a/src/fileio.cpp b/src/fileio.cpp --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -25,7 +25,6 @@ #include #endif #include -#include #include #include "safeguards.h" diff --git a/src/game/game_info.cpp b/src/game/game_info.cpp --- a/src/game/game_info.cpp +++ b/src/game/game_info.cpp @@ -13,7 +13,6 @@ #include "game_info.hpp" #include "game_scanner.hpp" #include "../debug.h" -#include #include "../safeguards.h" diff --git a/src/gamelog_internal.h b/src/gamelog_internal.h --- a/src/gamelog_internal.h +++ b/src/gamelog_internal.h @@ -11,7 +11,6 @@ #define GAMELOG_INTERNAL_H #include "gamelog.h" -#include /** * Information about the presence of a Grf at a certain point during gamelog history diff --git a/src/gfx_layout.h b/src/gfx_layout.h --- a/src/gfx_layout.h +++ b/src/gfx_layout.h @@ -14,7 +14,6 @@ #include "gfx_func.h" #include "core/smallmap_type.hpp" -#include #include #include diff --git a/src/gfx_layout_icu.cpp b/src/gfx_layout_icu.cpp --- a/src/gfx_layout_icu.cpp +++ b/src/gfx_layout_icu.cpp @@ -24,8 +24,6 @@ #include #include -#include - #include "safeguards.h" /** harfbuzz doesn't use floats, so we need a value to scale position with to get sub-pixel precision. */ diff --git a/src/industrytype.h b/src/industrytype.h --- a/src/industrytype.h +++ b/src/industrytype.h @@ -10,7 +10,6 @@ #ifndef INDUSTRYTYPE_H #define INDUSTRYTYPE_H -#include #include "map_type.h" #include "slope_type.h" #include "industry_type.h" diff --git a/src/landscape.cpp b/src/landscape.cpp --- a/src/landscape.cpp +++ b/src/landscape.cpp @@ -36,9 +36,6 @@ #include "landscape_cmd.h" #include "terraform_cmd.h" #include "station_func.h" -#include -#include -#include #include "table/strings.h" #include "table/sprites.h" diff --git a/src/linkgraph/linkgraph_gui.h b/src/linkgraph/linkgraph_gui.h --- a/src/linkgraph/linkgraph_gui.h +++ b/src/linkgraph/linkgraph_gui.h @@ -15,7 +15,6 @@ #include "../widget_type.h" #include "../window_gui.h" #include "linkgraph_base.h" -#include /** * Monthly statistics for a link between two stations. diff --git a/src/linkgraph/linkgraphjob.h b/src/linkgraph/linkgraphjob.h --- a/src/linkgraph/linkgraphjob.h +++ b/src/linkgraph/linkgraphjob.h @@ -12,7 +12,6 @@ #include "../thread.h" #include "linkgraph.h" -#include #include class LinkGraphJob; diff --git a/src/linkgraph/mcf.cpp b/src/linkgraph/mcf.cpp --- a/src/linkgraph/mcf.cpp +++ b/src/linkgraph/mcf.cpp @@ -3,7 +3,6 @@ #include "../stdafx.h" #include "../core/math_func.hpp" #include "mcf.h" -#include #include "../safeguards.h" diff --git a/src/linkgraph/refresh.h b/src/linkgraph/refresh.h --- a/src/linkgraph/refresh.h +++ b/src/linkgraph/refresh.h @@ -12,8 +12,6 @@ #include "../cargo_type.h" #include "../vehicle_base.h" -#include -#include /** * Utility to refresh links a consist will visit. diff --git a/src/misc/dbg_helpers.h b/src/misc/dbg_helpers.h --- a/src/misc/dbg_helpers.h +++ b/src/misc/dbg_helpers.h @@ -10,7 +10,6 @@ #ifndef DBG_HELPERS_H #define DBG_HELPERS_H -#include #include #include "../direction_type.h" diff --git a/src/misc/lrucache.hpp b/src/misc/lrucache.hpp --- a/src/misc/lrucache.hpp +++ b/src/misc/lrucache.hpp @@ -11,7 +11,6 @@ #define LRUCACHE_HPP #include -#include #include /** diff --git a/src/network/core/tcp.h b/src/network/core/tcp.h --- a/src/network/core/tcp.h +++ b/src/network/core/tcp.h @@ -17,7 +17,6 @@ #include #include -#include #include /** The states of sending the packets. */ diff --git a/src/network/core/tcp_connect.cpp b/src/network/core/tcp_connect.cpp --- a/src/network/core/tcp_connect.cpp +++ b/src/network/core/tcp_connect.cpp @@ -16,8 +16,6 @@ #include "../network_coordinator.h" #include "../network_internal.h" -#include - #include "../../safeguards.h" /** List of connections that are currently being created */ diff --git a/src/network/network_chat_gui.cpp b/src/network/network_chat_gui.cpp --- a/src/network/network_chat_gui.cpp +++ b/src/network/network_chat_gui.cpp @@ -28,8 +28,6 @@ #include "table/strings.h" -#include - #include "../safeguards.h" /** The draw buffer must be able to contain the chat message, client name and the "[All]" message, diff --git a/src/network/network_command.cpp b/src/network/network_command.cpp --- a/src/network/network_command.cpp +++ b/src/network/network_command.cpp @@ -51,7 +51,6 @@ #include "../water_cmd.h" #include "../waypoint_cmd.h" #include "../script/script_cmd.h" -#include #include "../safeguards.h" diff --git a/src/network/network_coordinator.h b/src/network/network_coordinator.h --- a/src/network/network_coordinator.h +++ b/src/network/network_coordinator.h @@ -13,7 +13,6 @@ #include "core/tcp_coordinator.h" #include "network_stun.h" #include "network_turn.h" -#include /** * Game Coordinator communication. diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -52,8 +52,6 @@ # include #endif -#include - #include "../safeguards.h" static void ShowNetworkStartServerWindow(); diff --git a/src/newgrf.cpp b/src/newgrf.cpp --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -41,7 +41,6 @@ #include "timer/timer_game_calendar.h" #include "string_func.h" #include "network/core/config.h" -#include #include "smallmap_gui.h" #include "genworld.h" #include "error.h" diff --git a/src/newgrf_generic.cpp b/src/newgrf_generic.cpp --- a/src/newgrf_generic.cpp +++ b/src/newgrf_generic.cpp @@ -14,7 +14,6 @@ #include "core/random_func.hpp" #include "newgrf_sound.h" #include "water_map.h" -#include #include "safeguards.h" diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -36,7 +36,6 @@ #include "table/sprites.h" -#include #include "safeguards.h" /** diff --git a/src/newgrf_storage.cpp b/src/newgrf_storage.cpp --- a/src/newgrf_storage.cpp +++ b/src/newgrf_storage.cpp @@ -12,7 +12,6 @@ #include "core/pool_func.hpp" #include "core/endian_func.hpp" #include "debug.h" -#include #include "safeguards.h" diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp --- a/src/newgrf_text.cpp +++ b/src/newgrf_text.cpp @@ -17,8 +17,6 @@ #include "stdafx.h" -#include - #include "newgrf.h" #include "strings_func.h" #include "newgrf_storage.h" @@ -31,7 +29,6 @@ #include "core/smallmap_type.hpp" #include "language.h" #include -#include #include "table/strings.h" #include "table/control_codes.h" diff --git a/src/os/macosx/macos.mm b/src/os/macosx/macos.mm --- a/src/os/macosx/macos.mm +++ b/src/os/macosx/macos.mm @@ -14,7 +14,6 @@ #include "../../string_func.h" #include "../../fileio_func.h" #include -#include #define Rect OTTDRect #define Point OTTDPoint diff --git a/src/os/windows/win32.cpp b/src/os/windows/win32.cpp --- a/src/os/windows/win32.cpp +++ b/src/os/windows/win32.cpp @@ -27,7 +27,6 @@ #include #include "../../language.h" #include "../../thread.h" -#include #include "../../safeguards.h" diff --git a/src/roadveh.h b/src/roadveh.h --- a/src/roadveh.h +++ b/src/roadveh.h @@ -17,7 +17,6 @@ #include "road.h" #include "road_map.h" #include "newgrf_engine.h" -#include struct RoadVehicle; diff --git a/src/saveload/map_sl.cpp b/src/saveload/map_sl.cpp --- a/src/saveload/map_sl.cpp +++ b/src/saveload/map_sl.cpp @@ -15,7 +15,6 @@ #include "../map_func.h" #include "../core/bitmath_func.hpp" #include "../fios.h" -#include #include "../safeguards.h" diff --git a/src/saveload/oldloader_sl.cpp b/src/saveload/oldloader_sl.cpp --- a/src/saveload/oldloader_sl.cpp +++ b/src/saveload/oldloader_sl.cpp @@ -33,7 +33,6 @@ #include "../timer/timer_game_calendar.h" #include "saveload_internal.h" #include "oldloader.h" -#include #include "table/strings.h" #include "../table/engines.h" diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp --- a/src/saveload/saveload.cpp +++ b/src/saveload/saveload.cpp @@ -43,7 +43,6 @@ #include "../fios.h" #include "../error.h" #include -#include #ifdef __EMSCRIPTEN__ # include #endif diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp --- a/src/saveload/vehicle_sl.cpp +++ b/src/saveload/vehicle_sl.cpp @@ -23,8 +23,6 @@ #include "../company_func.h" #include "../disaster_vehicle.h" -#include - #include "../safeguards.h" /** diff --git a/src/script/api/script_controller.hpp b/src/script/api/script_controller.hpp --- a/src/script/api/script_controller.hpp +++ b/src/script/api/script_controller.hpp @@ -11,7 +11,6 @@ #define SCRIPT_CONTROLLER_HPP #include "script_types.hpp" -#include /** * The Controller, the class each Script should extend. It creates the Script, diff --git a/src/script/api/script_error.hpp b/src/script/api/script_error.hpp --- a/src/script/api/script_error.hpp +++ b/src/script/api/script_error.hpp @@ -12,7 +12,6 @@ #include "script_object.hpp" #include "script_companymode.hpp" -#include /** * Helper to write precondition enforcers for the script API in an abbreviated manner. diff --git a/src/script/api/script_list.hpp b/src/script/api/script_list.hpp --- a/src/script/api/script_list.hpp +++ b/src/script/api/script_list.hpp @@ -12,8 +12,6 @@ #define SCRIPT_LIST_HPP #include "script_object.hpp" -#include -#include class ScriptListSorter; diff --git a/src/script/api/script_log_types.hpp b/src/script/api/script_log_types.hpp --- a/src/script/api/script_log_types.hpp +++ b/src/script/api/script_log_types.hpp @@ -10,8 +10,6 @@ #ifndef SCRIPT_LOG_TYPES_HPP #define SCRIPT_LOG_TYPES_HPP -#include - namespace ScriptLogTypes { /** * Log levels; The value is also feed to Debug() lvl. diff --git a/src/script/script_config.hpp b/src/script/script_config.hpp --- a/src/script/script_config.hpp +++ b/src/script/script_config.hpp @@ -10,8 +10,6 @@ #ifndef SCRIPT_CONFIG_HPP #define SCRIPT_CONFIG_HPP -#include -#include #include "../core/smallmap_type.hpp" #include "../company_type.h" #include "../textfile_gui.h" diff --git a/src/script/script_instance.hpp b/src/script/script_instance.hpp --- a/src/script/script_instance.hpp +++ b/src/script/script_instance.hpp @@ -11,7 +11,6 @@ #define SCRIPT_INSTANCE_HPP #include -#include #include #include "script_suspend.hpp" #include "script_log_types.hpp" diff --git a/src/script/script_scanner.hpp b/src/script/script_scanner.hpp --- a/src/script/script_scanner.hpp +++ b/src/script/script_scanner.hpp @@ -10,7 +10,6 @@ #ifndef SCRIPT_SCANNER_HPP #define SCRIPT_SCANNER_HPP -#include #include "../fileio_func.h" #include "../string_func.h" diff --git a/src/script/squirrel.cpp b/src/script/squirrel.cpp --- a/src/script/squirrel.cpp +++ b/src/script/squirrel.cpp @@ -20,7 +20,6 @@ #include "../core/alloc_func.hpp" #include -#include /** * In the memory allocator for Squirrel we want to directly use malloc/realloc, so when the OS diff --git a/src/settings_table.h b/src/settings_table.h --- a/src/settings_table.h +++ b/src/settings_table.h @@ -12,7 +12,6 @@ #ifndef SETTINGS_TABLE_H #define SETTINGS_TABLE_H -#include #include "settings_internal.h" extern SettingTable _company_settings; diff --git a/src/ship.h b/src/ship.h --- a/src/ship.h +++ b/src/ship.h @@ -10,8 +10,6 @@ #ifndef SHIP_H #define SHIP_H -#include - #include "vehicle_base.h" #include "water_map.h" diff --git a/src/station_base.h b/src/station_base.h --- a/src/station_base.h +++ b/src/station_base.h @@ -18,8 +18,6 @@ #include "linkgraph/linkgraph_type.h" #include "newgrf_storage.h" #include "bitmap_type.h" -#include -#include static const byte INITIAL_STATION_RATING = 175; diff --git a/src/station_gui.cpp b/src/station_gui.cpp --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -37,8 +37,6 @@ #include "table/strings.h" -#include - #include "safeguards.h" /** diff --git a/src/station_type.h b/src/station_type.h --- a/src/station_type.h +++ b/src/station_type.h @@ -12,7 +12,6 @@ #include "core/smallstack_type.hpp" #include "tilearea_type.h" -#include typedef uint16 StationID; typedef uint16 RoadStopID; diff --git a/src/stdafx.h b/src/stdafx.h --- a/src/stdafx.h +++ b/src/stdafx.h @@ -53,6 +53,7 @@ #endif #include +#include #include #include #include @@ -65,12 +66,16 @@ #include #include #include +#include #include #include #include +#include #include +#include #include #include +#include #include #include #include diff --git a/src/tar_type.h b/src/tar_type.h --- a/src/tar_type.h +++ b/src/tar_type.h @@ -10,9 +10,6 @@ #ifndef TAR_TYPE_H #define TAR_TYPE_H -#include -#include - #include "fileio_type.h" diff --git a/src/terraform_cmd.cpp b/src/terraform_cmd.cpp --- a/src/terraform_cmd.cpp +++ b/src/terraform_cmd.cpp @@ -22,9 +22,6 @@ #include "table/strings.h" -#include -#include - #include "safeguards.h" /** Set of tiles. */ diff --git a/src/tests/landscape_partial_pixel_z.cpp b/src/tests/landscape_partial_pixel_z.cpp --- a/src/tests/landscape_partial_pixel_z.cpp +++ b/src/tests/landscape_partial_pixel_z.cpp @@ -13,7 +13,6 @@ #include "../landscape.h" #include "../slope_func.h" -#include /** * Check whether the addition of two slope's GetPartialPixelZ values results in diff --git a/src/tests/string_func.cpp b/src/tests/string_func.cpp --- a/src/tests/string_func.cpp +++ b/src/tests/string_func.cpp @@ -12,7 +12,6 @@ #include "../3rdparty/catch2/catch.hpp" #include "../string_func.h" -#include /**** String compare/equals *****/ diff --git a/src/timer/timer_manager.h b/src/timer/timer_manager.h --- a/src/timer/timer_manager.h +++ b/src/timer/timer_manager.h @@ -13,8 +13,6 @@ #include "stdafx.h" -#include - template class BaseTimer; diff --git a/src/town.h b/src/town.h --- a/src/town.h +++ b/src/town.h @@ -16,7 +16,6 @@ #include "subsidy_type.h" #include "newgrf_storage.h" #include "cargotype.h" -#include template struct BuildingCounts { diff --git a/src/townname_type.h b/src/townname_type.h --- a/src/townname_type.h +++ b/src/townname_type.h @@ -16,7 +16,6 @@ #include "newgrf_townname.h" #include "town_type.h" #include "string_type.h" -#include typedef std::set TownNames; diff --git a/src/vehicle_base.h b/src/vehicle_base.h --- a/src/vehicle_base.h +++ b/src/vehicle_base.h @@ -24,8 +24,6 @@ #include "network/network.h" #include "saveload/saveload.h" #include "timer/timer_game_calendar.h" -#include -#include const uint TILE_AXIAL_DISTANCE = 192; // Logical length of the tile in any DiagDirection used in vehicle movement. const uint TILE_CORNER_DISTANCE = 128; // Logical length of the tile corner crossing in any non-diagonal direction used in vehicle movement. diff --git a/src/video/cocoa/cocoa_v.mm b/src/video/cocoa/cocoa_v.mm --- a/src/video/cocoa/cocoa_v.mm +++ b/src/video/cocoa/cocoa_v.mm @@ -44,7 +44,6 @@ #import /* for MAXPATHLEN */ #import /* gettimeofday */ -#include /* The 10.12 SDK added new names for some enum constants and * deprecated the old ones. As there's no functional change in any diff --git a/src/video/cocoa/cocoa_wnd.mm b/src/video/cocoa/cocoa_wnd.mm --- a/src/video/cocoa/cocoa_wnd.mm +++ b/src/video/cocoa/cocoa_wnd.mm @@ -34,7 +34,6 @@ #include "../../window_gui.h" #include "../../spritecache.h" #include "../../toolbar_gui.h" -#include #include "table/sprites.h" diff --git a/src/video/opengl.cpp b/src/video/opengl.cpp --- a/src/video/opengl.cpp +++ b/src/video/opengl.cpp @@ -36,7 +36,6 @@ #include "../debug.h" #include "../blitter/factory.hpp" #include "../zoom_func.h" -#include #include #include "../table/opengl_shader.h" diff --git a/src/viewport.cpp b/src/viewport.cpp --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -92,7 +92,6 @@ #include "viewport_cmd.h" #include -#include #include #include "table/strings.h" diff --git a/src/viewport_sprite_sorter_sse4.cpp b/src/viewport_sprite_sorter_sse4.cpp --- a/src/viewport_sprite_sorter_sse4.cpp +++ b/src/viewport_sprite_sorter_sse4.cpp @@ -14,7 +14,6 @@ #include "smmintrin.h" #include "viewport_sprite_sorter.h" #include -#include #include #include "safeguards.h" diff --git a/src/widgets/slider_func.h b/src/widgets/slider_func.h --- a/src/widgets/slider_func.h +++ b/src/widgets/slider_func.h @@ -13,8 +13,6 @@ #include "../window_type.h" #include "../gfx_func.h" -#include - void DrawSliderWidget(Rect r, int min_value, int max_value, int value, const std::map &labels); bool ClickSliderWidget(Rect r, Point pt, int min_value, int max_value, int &value); diff --git a/src/window_gui.h b/src/window_gui.h --- a/src/window_gui.h +++ b/src/window_gui.h @@ -10,8 +10,6 @@ #ifndef WINDOW_GUI_H #define WINDOW_GUI_H -#include - #include "vehiclelist.h" #include "vehicle_type.h" #include "viewport_type.h"