Skip to content

Commit

Permalink
GUI2/MP Create Game: removed unused game_config_view reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Jan 5, 2021
1 parent fef1132 commit caab5b3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions src/gui/dialogs/multiplayer/mp_create_game.cpp
Expand Up @@ -67,8 +67,7 @@ namespace prefs = preferences;
REGISTER_DIALOG(mp_create_game)

mp_create_game::mp_create_game(saved_game& state, bool local_mode)
: cfg_(game_config_manager::get()->game_config())
, create_engine_(state)
: create_engine_(state)
, config_engine_()
, options_manager_()
, selected_game_index_(-1)
Expand Down Expand Up @@ -399,7 +398,6 @@ void mp_create_game::pre_show(window& win)
on_mod_toggle(cfg["index"].to_int(), nullptr);
}, true);

//plugins_context_->set_accessor("game_config", [this](const config&) {return cfg_; });
plugins_context_->set_accessor("get_selected", [this](const config&) {
const ng::level& current_level = create_engine_.current_level();
return config {
Expand Down
3 changes: 0 additions & 3 deletions src/gui/dialogs/multiplayer/mp_create_game.hpp
Expand Up @@ -23,7 +23,6 @@
#include "mp_game_settings.hpp"

class config;
class game_config_view;

namespace gui2
{
Expand Down Expand Up @@ -54,8 +53,6 @@ class mp_create_game : public modal_dialog, private plugin_executor
/** Inherited from modal_dialog. */
virtual void post_show(window& window) override;

const game_config_view& cfg_;

ng::create_engine create_engine_;
std::unique_ptr<ng::configure_engine> config_engine_;
std::unique_ptr<mp_options_helper> options_manager_;
Expand Down

0 comments on commit caab5b3

Please sign in to comment.