Skip to content

Commit

Permalink
Cleaned up global.hpp includes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Jan 23, 2021
1 parent a04f6d2 commit 204d3b4
Show file tree
Hide file tree
Showing 26 changed files with 6 additions and 31 deletions.
1 change: 1 addition & 0 deletions src/ai/formula/function_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "attack_prediction.hpp"
#include "filesystem.hpp"
#include "game_board.hpp"
#include "global.hpp"
#include "display.hpp"
#include "log.hpp"
#include "map/label.hpp"
Expand Down
1 change: 0 additions & 1 deletion src/commandline_argv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

#ifdef _WIN32

#include "global.hpp"
#include "serialization/unicode_cast.hpp"

#include <windows.h>
Expand Down
1 change: 0 additions & 1 deletion src/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

#include "config_attribute_value.hpp"
#include "exceptions.hpp"
#include "global.hpp"

#include <climits>
#include <ctime>
Expand Down
1 change: 0 additions & 1 deletion src/config_attribute_value.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

#pragma once

#include "global.hpp"
#include "tstring.hpp"
#include "utils/variant.hpp"

Expand Down
2 changes: 0 additions & 2 deletions src/exceptions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

#pragma once

#include "global.hpp"

#include <exception>
#include <string>

Expand Down
1 change: 1 addition & 0 deletions src/formula/function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "formula/debugger.hpp"
#include "game_config.hpp"
#include "game_display.hpp"
#include "global.hpp"
#include "log.hpp"

#include <boost/math/constants/constants.hpp>
Expand Down
1 change: 0 additions & 1 deletion src/gettext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
See the COPYING file for more details.
*/

#include "global.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "filesystem.hpp"
Expand Down
2 changes: 0 additions & 2 deletions src/gui/auxiliary/iterator/walker_grid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

#include "gui/auxiliary/iterator/walker_grid.hpp"

#include "global.hpp"

#include <cassert>

namespace gui2
Expand Down
2 changes: 0 additions & 2 deletions src/gui/auxiliary/iterator/walker_tree_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

#include "gui/auxiliary/iterator/walker_tree_node.hpp"

#include "global.hpp"

#include <cassert>

namespace gui2
Expand Down
1 change: 0 additions & 1 deletion src/gui/auxiliary/iterator/walker_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#include "gui/auxiliary/iterator/walker_widget.hpp"

#include "global.hpp"
#include "gui/widgets/widget.hpp"

#include <cassert>
Expand Down
1 change: 0 additions & 1 deletion src/hash.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <cstdint>
#include <string>

#include "global.hpp"
#include "exceptions.hpp"

// Not configurable. The size (64) is both hard-, and implicitly-coded in crypt_blowfish
Expand Down
1 change: 0 additions & 1 deletion src/lexical_cast.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
#define __LONG_LONG_SUPPORTED
#endif

#include "global.hpp"
#include <optional>

#include <cstdlib>
Expand Down
2 changes: 0 additions & 2 deletions src/log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
#include <ctime>
#include <mutex>

#include "global.hpp"

namespace {

class null_streambuf : public std::streambuf
Expand Down
2 changes: 0 additions & 2 deletions src/log.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@

#pragma once

#include "global.hpp"

#ifndef __func__
#ifdef __FUNCTION__
#define __func__ __FUNCTION__
Expand Down
2 changes: 0 additions & 2 deletions src/lua_jailbreak_exception.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

#pragma once

#include "global.hpp"

/**
* Base class for exceptions that want to be thrown 'through' lua.
*
Expand Down
1 change: 1 addition & 0 deletions src/scripting/lua_terrainfilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "scripting/lua_terrainmap.hpp"

#include "formatter.hpp"
#include "global.hpp"
#include "log.hpp"
#include "map/location.hpp"
#include "map/map.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/scripting/lua_terrainmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "scripting/lua_terrainfilter.hpp"

#include "formatter.hpp"
#include "global.hpp"
#include "log.hpp"
#include "map/location.hpp"
#include "map/map.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/scripting/push_check.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "scripting/lua_common.hpp"
#include "scripting/lua_widget.hpp"

#include "global.hpp"
#include "tstring.hpp"
#include "map/location.hpp"
#include "lua/lauxlib.h"
Expand Down
1 change: 0 additions & 1 deletion src/sdl/surface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#pragma once

#include "global.hpp"
#include "utils/const_clone.hpp"

#include <SDL2/SDL.h>
Expand Down
1 change: 0 additions & 1 deletion src/serialization/tokenizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
See the COPYING file for more details.
*/

#include "global.hpp"
#include "serialization/tokenizer.hpp"
#include "wesconfig.h"

Expand Down
1 change: 1 addition & 0 deletions src/units/abilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "display_context.hpp"
#include "font/text_formatting.hpp"
#include "game_board.hpp"
#include "global.hpp"
#include "lexical_cast.hpp"
#include "log.hpp"
#include "map/map.hpp"
Expand Down
2 changes: 0 additions & 2 deletions src/utils/general.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

#pragma once

#include "global.hpp"

#include <algorithm>
#include <cctype>
#include <functional>
Expand Down
2 changes: 0 additions & 2 deletions src/utils/make_enum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@

#pragma once

#include "global.hpp"

#include <cassert>
#include <exception>
#include <string>
Expand Down
2 changes: 0 additions & 2 deletions src/utils/name_generator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

#pragma once

#include "global.hpp"

#include <string>
#include <map>
#include <exception>
Expand Down
2 changes: 0 additions & 2 deletions src/utils/scope_exit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

#pragma once

#include "global.hpp"

#include <functional>

namespace utils {
Expand Down
2 changes: 0 additions & 2 deletions src/utils/shared_reference.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

#pragma once

#include "global.hpp"

#include <memory>
#include <stdexcept>

Expand Down

0 comments on commit 204d3b4

Please sign in to comment.