More include cleanups

Cleaned up unnecessary inclusions of:
* event.hpp
* exceptions.hpp
* formatter.hpp
* hash.hpp
* image.hpp
* sound.hpp
* team.hpp
* tstring.hpp
* wml_exception.hpp
This commit is contained in:
Charles Dang 2018-03-11 23:22:02 +11:00
parent 4ba33d464e
commit a7f6862210
41 changed files with 1 additions and 43 deletions

View file

@ -16,7 +16,6 @@
#include "addon/manager.hpp"
#include "addon/manager_ui.hpp"
#include "filesystem.hpp"
#include "formatter.hpp"
#include "preferences/game.hpp"
#include "gettext.hpp"
#include "gui/dialogs/addon/connect.hpp"

View file

@ -33,7 +33,6 @@
#include "units/unit.hpp"
#include "units/map.hpp"
#include "units/filter.hpp"
#include "wml_exception.hpp"
#include <set>
#include <sstream>

View file

@ -24,7 +24,6 @@
#include "log.hpp"
#include "serialization/parser.hpp"
#include "serialization/preprocessor.hpp"
#include "wml_exception.hpp"
#include <vector>
#include <deque>

View file

@ -42,7 +42,6 @@
#include "units/types.hpp"
#include "units/unit.hpp"
#include "variable.hpp"
#include "wml_exception.hpp"
#include <cmath>

View file

@ -13,7 +13,6 @@
#include "chat_events.hpp"
#include "formatter.hpp"
#include "formula/string_utils.hpp"
#include "gettext.hpp"
#include "log.hpp"

View file

@ -48,7 +48,6 @@
#include "config_attribute_value.hpp"
#include "exceptions.hpp"
#include "tstring.hpp"
#ifdef HAVE_CXX14
# ifdef __clang__ // Check this first, because clang also defines __GNUC__

View file

@ -46,7 +46,6 @@
#include <boost/variant/variant.hpp>
#include <boost/range/iterator_range.hpp>
#include "exceptions.hpp"
#include "tstring.hpp"
#ifdef HAVE_CXX14

View file

@ -16,7 +16,6 @@
#include "log.hpp"
#include "gettext.hpp"
#include "formula/string_utils.hpp"
#include "tstring.hpp"
#include "game_config.hpp"
#include "version.hpp"
#include "preferences/general.hpp"

View file

@ -29,7 +29,6 @@
#include "team.hpp"
#include "terrain/type_data.hpp"
#include "units/unit.hpp"
#include "wml_exception.hpp"
#include <boost/regex.hpp>

View file

@ -38,7 +38,6 @@
#include "resources.hpp"
#include "tod_manager.hpp"
#include "color.hpp"
#include "sound.hpp"
#include "synced_context.hpp"
#include "terrain/type_data.hpp"
#include "units/unit.hpp"

View file

@ -50,7 +50,6 @@
#include "resources.hpp"
#include "scripting/game_lua_kernel.hpp"
#include "side_filter.hpp"
#include "sound.hpp"
#include "soundsource.hpp"
#include "synced_context.hpp"
#include "synced_user_choice.hpp"

View file

@ -20,8 +20,6 @@
#include "preferences/game.hpp"
#include "generators/map_create.hpp"
#include "gui/dialogs/campaign_difficulty.hpp"
#include "hash.hpp"
#include "image.hpp"
#include "log.hpp"
#include "map/exception.hpp"
#include "map/map.hpp"

View file

@ -21,7 +21,6 @@
#include "mp_ui_alerts.hpp"
#include "preferences/game.hpp"
#include "wesnothd_connection.hpp"
#include "wml_exception.hpp"
#include <iterator>

View file

@ -28,7 +28,6 @@
#include "gui/widgets/selectable_item.hpp"
#include "gui/widgets/text_box.hpp"
#include "gui/widgets/window.hpp"
#include "wml_exception.hpp"
namespace gui2
{

View file

@ -30,7 +30,6 @@
#include "gui/widgets/settings.hpp"
#include "gui/widgets/slider.hpp"
#include "gui/widgets/text_box.hpp"
#include "image.hpp"
#include "utils/functional.hpp"

View file

@ -18,7 +18,6 @@
#include "gui/dialogs/transient_message.hpp"
#include "savegame.hpp"
#include "save_index.hpp"
#include "tstring.hpp"
#include "gettext.hpp"
#include <SDL_keycode.h>

View file

@ -36,7 +36,6 @@
#include "help/help.hpp"
#include "language.hpp"
#include "color.hpp"
#include "team.hpp"
#include "units/unit.hpp"
#include "utils/functional.hpp"

View file

@ -37,7 +37,6 @@
#include "game_config.hpp"
#include "gettext.hpp"
#include "play_controller.hpp"
#include "team.hpp"
#include "units/types.hpp"
#include "utils/functional.hpp"

View file

@ -15,7 +15,6 @@
#pragma once
#include "widget.hpp"
#include "tstring.hpp"
#include <boost/dynamic_bitset.hpp>

View file

@ -22,7 +22,6 @@
#include "gui/core/log.hpp"
#include "gui/core/window_builder/helper.hpp"
#include "sound.hpp"
#include "wml_exception.hpp"
#include "utils/functional.hpp"

View file

@ -56,7 +56,6 @@
#include "preferences/display.hpp"
#include "sdl/rect.hpp"
#include "sdl/surface.hpp"
#include "tstring.hpp"
#include "formula/variant.hpp"
#include "video.hpp"
#include "wml_exception.hpp"

View file

@ -16,7 +16,6 @@
#include "hotkey_command.hpp"
#include "game_end_exceptions.hpp"
#include "events.hpp"
class display;
class CVideo;

View file

@ -16,7 +16,6 @@
#include "actions/create.hpp"
#include "font/standard_colors.hpp"
#include "formatter.hpp"
#include "formula/string_utils.hpp"
#include "game_display.hpp"
#include "game_errors.hpp"

View file

@ -27,7 +27,6 @@
#include "serialization/string_utils.hpp"
#include "terrain/terrain.hpp"
#include "terrain/type_data.hpp"
#include "wml_exception.hpp"
#include <algorithm>
#include <sstream>

View file

@ -31,7 +31,6 @@
#include "color.hpp"
#include "display_chat_manager.hpp"
#include "font/standard_colors.hpp"
#include "formatter.hpp"
#include "formula/string_utils.hpp"
#include "game_board.hpp"
#include "game_config_manager.hpp"
@ -77,7 +76,6 @@
#include "savegame.hpp"
#include "scripting/game_lua_kernel.hpp"
#include "scripting/plugins/manager.hpp"
#include "sound.hpp"
#include "synced_context.hpp"
#include "terrain/builder.hpp"
#include "units/udisplay.hpp"

View file

@ -28,7 +28,6 @@
#include "sdl/surface.hpp"
#include "team.hpp"
#include "terrain/type_data.hpp"
#include "wml_exception.hpp"
static lg::log_domain log_display("display");
#define DBG_DP LOG_STREAM(debug, log_display)

View file

@ -39,7 +39,6 @@
#include "synced_context.hpp"
#include "team.hpp" // for team
#include "tod_manager.hpp"
#include "tstring.hpp" // for t_string
#include "units/animation_component.hpp"
#include "units/ptr.hpp" // for unit_const_ptr
#include "units/unit.hpp" // for unit

View file

@ -15,7 +15,6 @@
#include "mt_rng.hpp"
#include "seed_rng.hpp"
#include "config.hpp"
#include "formatter.hpp"
#include "log.hpp"
#include <sstream>
#include <iomanip>

View file

@ -61,7 +61,6 @@
#include "units/unit.hpp"
#include "units/id.hpp"
#include "whiteboard/manager.hpp"
#include "wml_exception.hpp"
#include "utils/functional.hpp"

View file

@ -28,7 +28,6 @@
#include "game_initialization/playcampaign.hpp"
#include "resources.hpp"
#include "savegame.hpp"
#include "sound.hpp"
#include "serialization/string_utils.hpp"
#include "whiteboard/manager.hpp"
#include "countdown_clock.hpp"

View file

@ -34,7 +34,6 @@
#include "resources.hpp" // for gameboard, screen, etc
#include "serialization/string_utils.hpp" // for string_map
#include "team.hpp" // for team, team::CONTROLLER::AI, etc
#include "tstring.hpp" // for operator==
#include "wesnothd_connection_error.hpp"
#include "whiteboard/manager.hpp" // for manager
#include "widgets/button.hpp" // for button

View file

@ -23,7 +23,6 @@
#include "display.hpp"
#include "filesystem.hpp"
#include "formatter.hpp"
#include "formula/string_utils.hpp"
#include "preferences/game.hpp"
#include "gettext.hpp"

View file

@ -55,7 +55,6 @@
#include "game_events/pump.hpp" // for queued_event
#include "preferences/game.hpp" // for encountered_units
#include "help/help.hpp"
#include "image.hpp" // for get_image, locator
#include "log.hpp" // for LOG_STREAM, logger, etc
#include "utils/make_enum.hpp" // for operator<<
#include "map/map.hpp" // for gamemap

View file

@ -14,7 +14,6 @@
#include "scripting/lua_fileops.hpp"
#include "exceptions.hpp"
#include "filesystem.hpp"
#include "game_config.hpp" //for game_config::debug_lua
#include "game_errors.hpp"

View file

@ -14,7 +14,6 @@
#include "scripting/lua_kernel_base.hpp"
#include "exceptions.hpp"
#include "game_config.hpp"
#include "game_errors.hpp"
#include "gui/core/gui_definition.hpp"

View file

@ -36,7 +36,6 @@
#include "server/player.hpp"
#include "server/simple_wml.hpp"
#include "server/ban.hpp"
#include "exceptions.hpp"
#include "server/user_handler.hpp"
#include "server/sample_user_handler.hpp"

View file

@ -19,11 +19,11 @@
#pragma once
#include "events.hpp"
#include "storyscreen/parser.hpp"
#include <memory>
#include <string>
#include <vector>
namespace storyscreen
{

View file

@ -24,7 +24,6 @@
#include "random.hpp"
#include "units/unit.hpp"
#include "units/abilities.hpp"
#include "wml_exception.hpp"
#include "resources.hpp"
#include <algorithm>

View file

@ -29,7 +29,6 @@
#include "units/formula_manager.hpp"
#include "units/types.hpp"
#include "variable.hpp" // needed for vconfig, scoped unit
#include "wml_exception.hpp" // needed for FAIL
#include "formula/callable_objects.hpp"
#include "formula/formula.hpp"
#include "formula/function_gamestate.hpp"

View file

@ -49,7 +49,6 @@
#include "serialization/validator.hpp" // for strict_validation_enabled
#include "sound.hpp" // for commit_music_changes, etc
#include "statistics.hpp" // for fresh_stats
#include "tstring.hpp" // for operator==, t_string
#include "utils/functional.hpp"
#include "version.hpp" // for version_info
#include "video.hpp" // for CVideo

View file

@ -35,7 +35,6 @@
#endif // endif _WIN32
#include "configr_assign.hpp"
#include "exceptions.hpp"
#include "wesnothd_connection_error.hpp"
#include <boost/asio.hpp>