Skip to content

Commit

Permalink
Cleaned up resources.hpp includes
Browse files Browse the repository at this point in the history
Includes one change of the source of a CVideo variable to remove a resources usecase.
  • Loading branch information
Vultraz committed Mar 20, 2017
1 parent ef11433 commit 731e691
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 14 deletions.
1 change: 0 additions & 1 deletion src/actions/undo_update_shroud_action.cpp
@@ -1,5 +1,4 @@
#include "actions/undo_update_shroud_action.hpp"
#include "resources.hpp"
#include "replay.hpp"

namespace actions
Expand Down
2 changes: 0 additions & 2 deletions src/editor/action/action.cpp
Expand Up @@ -22,8 +22,6 @@
#include "editor/map/map_context.hpp"
#include "gettext.hpp"

#include "resources.hpp"

#include <memory>

namespace editor {
Expand Down
1 change: 0 additions & 1 deletion src/editor/map/map_context.cpp
Expand Up @@ -24,7 +24,6 @@
#include "gettext.hpp"
#include "map/exception.hpp"
#include "map/label.hpp"
#include "resources.hpp"
#include "serialization/binary_or_text.hpp"
#include "serialization/parser.hpp"
#include "terrain/type_data.hpp"
Expand Down
1 change: 0 additions & 1 deletion src/game_events/manager_impl.cpp
Expand Up @@ -23,7 +23,6 @@
#include "game_data.hpp"
#include "log.hpp"
#include "reports.hpp"
#include "resources.hpp"
#include "scripting/game_lua_kernel.hpp"
#include "serialization/string_utils.hpp"

Expand Down
1 change: 0 additions & 1 deletion src/gui/dialogs/chat_log.cpp
Expand Up @@ -35,7 +35,6 @@
#include "serialization/unicode.hpp"
#include "game_preferences.hpp"
#include "log.hpp"
#include "resources.hpp"
#include "replay.hpp"
#include "gettext.hpp"

Expand Down
3 changes: 1 addition & 2 deletions src/gui/dialogs/unit_attack.cpp
Expand Up @@ -37,7 +37,6 @@
#include "gettext.hpp"
#include "help/help.hpp"
#include "language.hpp"
#include "resources.hpp"
#include "color.hpp"
#include "team.hpp"
#include "units/unit.hpp"
Expand Down Expand Up @@ -101,7 +100,7 @@ void unit_attack::damage_calc_callback(window& window)
battle_prediction_pane battle_pane(weapons_[index], (*attacker_itor_).get_location(), (*defender_itor_).get_location());
std::vector<gui::preview_pane*> preview_panes = {&battle_pane};

gui::show_dialog(resources::screen->video(), nullptr, _("Damage Calculations"), "", gui::OK_ONLY, nullptr, &preview_panes);
gui::show_dialog(window.video(), nullptr, _("Damage Calculations"), "", gui::OK_ONLY, nullptr, &preview_panes);
}

void unit_attack::pre_show(window& window)
Expand Down
1 change: 0 additions & 1 deletion src/gui/dialogs/unit_create.cpp
Expand Up @@ -37,7 +37,6 @@
#include "game_config.hpp"
#include "gettext.hpp"
#include "play_controller.hpp"
#include "resources.hpp"
#include "team.hpp"
#include "units/types.hpp"

Expand Down
2 changes: 1 addition & 1 deletion src/quit_confirmation.cpp
Expand Up @@ -18,7 +18,7 @@
#include "video.hpp"
#include "gui/dialogs/message.hpp"
#include "gui/widgets/window.hpp"
#include "resources.hpp"

#include <boost/range/adaptor/reversed.hpp>

std::vector<quit_confirmation*> quit_confirmation::blockers_ = std::vector<quit_confirmation*>();
Expand Down
1 change: 0 additions & 1 deletion src/synced_checkup.cpp
Expand Up @@ -16,7 +16,6 @@
#include "log.hpp"
#include "replay.hpp"
#include "synced_user_choice.hpp"
#include "resources.hpp"

static lg::log_domain log_replay("replay");
#define DBG_REPLAY LOG_STREAM(debug, log_replay)
Expand Down
1 change: 0 additions & 1 deletion src/synced_commands.cpp
Expand Up @@ -15,7 +15,6 @@
#include <cassert>

#include "log.hpp"
#include "resources.hpp"
#include "map/location.hpp"
#include "game_data.hpp"
#include "units/unit.hpp"
Expand Down
1 change: 0 additions & 1 deletion src/units/helper.cpp
Expand Up @@ -17,7 +17,6 @@
* Support functions for dealing with units.
*/

#include "resources.hpp"
#include "units/unit.hpp"
#include "units/helper.hpp"

Expand Down
1 change: 0 additions & 1 deletion src/whiteboard/highlighter.cpp
Expand Up @@ -30,7 +30,6 @@
#include "whiteboard/move.hpp"
#include "whiteboard/recall.hpp"
#include "whiteboard/recruit.hpp"
#include "resources.hpp"
#include "whiteboard/side_actions.hpp"
#include "whiteboard/suppose_dead.hpp"
#include "whiteboard/utility.hpp"
Expand Down

0 comments on commit 731e691

Please sign in to comment.