Mercurial > hg > openttd
changeset 13804:d603390e5833 draft
(svn r18330) -Cleanup: remove some unneeded includes
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sat, 28 Nov 2009 20:35:25 +0000 |
parents | 769b56e78dbe |
children | 97e8f494b7b9 |
files | src/ai/api/ai_bridge.cpp src/ai/api/ai_cargo.cpp src/ai/api/ai_engine.cpp src/cargopacket.cpp src/company_cmd.cpp src/company_gui.cpp src/console_cmds.cpp src/date.cpp src/date_gui.cpp src/economy.cpp src/engine.cpp src/engine_gui.cpp src/fontcache.cpp src/gfx.cpp src/gfxinit.cpp src/misc.cpp src/misc_cmd.cpp src/network/core/tcp_game.cpp src/network/network.cpp src/network/network_client.cpp src/network/network_gui.cpp src/network/network_server.cpp src/newgrf.cpp src/openttd.cpp src/saveload/cargopacket_sl.cpp src/saveload/order_sl.cpp src/saveload/strings_sl.cpp src/settings.cpp src/station.cpp src/unmovable_cmd.cpp src/widget.cpp src/widgets/dropdown.cpp |
diffstat | 32 files changed, 0 insertions(+), 39 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ai/api/ai_bridge.cpp +++ b/src/ai/api/ai_bridge.cpp @@ -14,7 +14,6 @@ #include "../ai_instance.hpp" #include "../../bridge_map.h" #include "../../strings_func.h" -#include "../../core/alloc_func.hpp" #include "../../economy_func.h" #include "../../date_func.h"
--- a/src/ai/api/ai_cargo.cpp +++ b/src/ai/api/ai_cargo.cpp @@ -12,7 +12,6 @@ #include "ai_cargo.hpp" #include "../../cargotype.h" #include "../../economy_func.h" -#include "../../core/alloc_func.hpp" #include "../../core/bitmath_func.hpp" /* static */ bool AICargo::IsValidCargo(CargoID cargo_type)
--- a/src/ai/api/ai_engine.cpp +++ b/src/ai/api/ai_engine.cpp @@ -13,7 +13,6 @@ #include "ai_cargo.hpp" #include "../../company_func.h" #include "../../strings_func.h" -#include "../../vehicle_func.h" #include "../../settings_type.h" #include "../../rail.h" #include "../../engine_base.h"
--- a/src/cargopacket.cpp +++ b/src/cargopacket.cpp @@ -12,7 +12,6 @@ #include "stdafx.h" #include "core/pool_func.hpp" #include "economy_base.h" -#include "station_base.h" /* Initialize the cargopacket-pool */ CargoPacketPool _cargopacket_pool("CargoPacket");
--- a/src/company_cmd.cpp +++ b/src/company_cmd.cpp @@ -10,7 +10,6 @@ /** @file company_cmd.cpp Handling of companies. */ #include "stdafx.h" -#include "openttd.h" #include "engine_base.h" #include "company_func.h" #include "company_gui.h" @@ -31,7 +30,6 @@ #include "autoreplace_func.h" #include "autoreplace_gui.h" #include "rail.h" -#include "sprite.h" #include "core/pool_func.hpp" #include "settings_func.h"
--- a/src/company_gui.cpp +++ b/src/company_gui.cpp @@ -20,7 +20,6 @@ #include "network/network.h" #include "network/network_gui.h" #include "network/network_func.h" -#include "sprite.h" #include "economy_func.h" #include "vehicle_base.h" #include "newgrf.h"
--- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -10,7 +10,6 @@ /** @file console_cmds.cpp Implementation of the console hooks. */ #include "stdafx.h" -#include "openttd.h" #include "console_internal.h" #include "debug.h" #include "engine_func.h"
--- a/src/date.cpp +++ b/src/date.cpp @@ -10,7 +10,6 @@ /** @file date.cpp Handling of dates in our native format and transforming them to something human readable. */ #include "stdafx.h" -#include "openttd.h" #include "variables.h" #include "network/network.h" #include "network/network_func.h"
--- a/src/date_gui.cpp +++ b/src/date_gui.cpp @@ -10,7 +10,6 @@ /** @file date_gui.cpp Graphical selection of a date. */ #include "stdafx.h" -#include "core/math_func.hpp" #include "strings_func.h" #include "date_func.h" #include "gfx_func.h" @@ -19,7 +18,6 @@ #include "date_gui.h" #include "widgets/dropdown_type.h" -#include "widgets/dropdown_func.h" #include "table/strings.h"
--- a/src/economy.cpp +++ b/src/economy.cpp @@ -10,7 +10,6 @@ /** @file economy.cpp Handling of the economy. */ #include "stdafx.h" -#include "openttd.h" #include "tile_cmd.h" #include "company_func.h" #include "command_func.h"
--- a/src/engine.cpp +++ b/src/engine.cpp @@ -16,7 +16,6 @@ #include "aircraft.h" #include "newgrf.h" #include "newgrf_engine.h" -#include "newgrf_cargo.h" #include "group.h" #include "strings_func.h" #include "gfx_func.h"
--- a/src/engine_gui.cpp +++ b/src/engine_gui.cpp @@ -12,7 +12,6 @@ #include "stdafx.h" #include "window_gui.h" #include "gfx_func.h" -#include "engine_func.h" #include "engine_base.h" #include "command_func.h" #include "strings_func.h"
--- a/src/fontcache.cpp +++ b/src/fontcache.cpp @@ -12,7 +12,6 @@ #include "stdafx.h" #include "fontcache.h" #include "blitter/factory.hpp" -#include "gfx_func.h" #include "core/math_func.hpp" #include "table/sprites.h"
--- a/src/gfx.cpp +++ b/src/gfx.cpp @@ -10,7 +10,6 @@ /** @file gfx.cpp Handling of drawing text and other gfx related stuff. */ #include "stdafx.h" -#include "openttd.h" #include "gfx_func.h" #include "variables.h" #include "fontcache.h"
--- a/src/gfxinit.cpp +++ b/src/gfxinit.cpp @@ -11,7 +11,6 @@ #include "stdafx.h" #include "debug.h" -#include "spritecache.h" #include "fios.h" #include "newgrf.h" #include "3rdparty/md5/md5.h"
--- a/src/misc.cpp +++ b/src/misc.cpp @@ -10,7 +10,6 @@ /** @file misc.cpp Misc functions that shouldn't be here. */ #include "stdafx.h" -#include "openttd.h" #include "landscape.h" #include "news_func.h" #include "variables.h" @@ -27,7 +26,6 @@ #include "network/network_func.h" #include "window_func.h" -#include "table/sprites.h" extern TileIndex _cur_tileloop_tile; extern void MakeNewgameSettingsLive();
--- a/src/misc_cmd.cpp +++ b/src/misc_cmd.cpp @@ -10,7 +10,6 @@ /** @file misc_cmd.cpp Some misc functions that are better fitted in other files, but never got moved there... */ #include "stdafx.h" -#include "openttd.h" #include "command_func.h" #include "economy_func.h" #include "window_func.h" @@ -22,7 +21,6 @@ #include "gfx_func.h" #include "functions.h" #include "vehicle_func.h" -#include "string_func.h" #include "company_func.h" #include "company_gui.h" #include "vehicle_base.h"
--- a/src/network/core/tcp_game.cpp +++ b/src/network/core/tcp_game.cpp @@ -14,7 +14,6 @@ #ifdef ENABLE_NETWORK #include "../../stdafx.h" -#include "../../openttd.h" #include "../network_internal.h" #include "../../core/pool_func.hpp"
--- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -13,7 +13,6 @@ #ifdef ENABLE_NETWORK -#include "../openttd.h" #include "../strings_func.h" #include "../command_func.h" #include "../date_func.h"
--- a/src/network/network_client.cpp +++ b/src/network/network_client.cpp @@ -13,7 +13,6 @@ #include "../stdafx.h" #include "../debug.h" -#include "../openttd.h" #include "network_internal.h" #include "network_gui.h" #include "../saveload/saveload.h"
--- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -11,7 +11,6 @@ #ifdef ENABLE_NETWORK #include "../stdafx.h" -#include "../openttd.h" #include "../strings_func.h" #include "../date_func.h" #include "../fios.h"
--- a/src/network/network_server.cpp +++ b/src/network/network_server.cpp @@ -28,7 +28,6 @@ #include "../company_func.h" #include "../company_gui.h" #include "../window_func.h" -#include "../openttd.h" #include "../cargotype.h" #include "table/strings.h"
--- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -18,7 +18,6 @@ #include "fileio_func.h" #include "engine_func.h" #include "engine_base.h" -#include "spritecache.h" #include "variables.h" #include "bridge.h" #include "town.h"
--- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -15,7 +15,6 @@ #include "variables.h" #undef VARDEF -#include "openttd.h" #include "blitter/factory.hpp" #include "sound/sound_driver.hpp" @@ -59,9 +58,7 @@ #include "rev.h" #include "highscore.h" #include "thread/thread.h" -#include "base_station_base.h" #include "station_base.h" -#include "airport.h" #include "crashlog.h" #include "newgrf_commons.h"
--- a/src/saveload/cargopacket_sl.cpp +++ b/src/saveload/cargopacket_sl.cpp @@ -10,7 +10,6 @@ /** @file cargopacket_sl.cpp Code handling saving and loading of cargo packets */ #include "../stdafx.h" -#include "../cargopacket.h" #include "../vehicle_base.h" #include "../station_base.h"
--- a/src/saveload/order_sl.cpp +++ b/src/saveload/order_sl.cpp @@ -11,7 +11,6 @@ #include "../stdafx.h" #include "../order_base.h" -#include "../core/alloc_func.hpp" #include "../settings_type.h" #include "saveload.h"
--- a/src/saveload/strings_sl.cpp +++ b/src/saveload/strings_sl.cpp @@ -10,8 +10,6 @@ /** @file strings_sl.cpp Code handling saving and loading of strings */ #include "../stdafx.h" -#include "../core/alloc_func.hpp" -#include "../core/math_func.hpp" #include "../string_func.h" #include "saveload_internal.h"
--- a/src/settings.cpp +++ b/src/settings.cpp @@ -23,7 +23,6 @@ */ #include "stdafx.h" -#include "openttd.h" #include "currency.h" #include "screenshot.h" #include "variables.h"
--- a/src/station.cpp +++ b/src/station.cpp @@ -11,7 +11,6 @@ #include "stdafx.h" #include "company_func.h" -#include "newgrf_cargo.h" #include "cargotype.h" #include "roadveh.h" #include "functions.h"
--- a/src/unmovable_cmd.cpp +++ b/src/unmovable_cmd.cpp @@ -16,7 +16,6 @@ #include "viewport_func.h" #include "company_base.h" #include "town.h" -#include "sprite.h" #include "bridge_map.h" #include "genworld.h" #include "autoslope.h"