Skip to content

Commit

Permalink
Game Display: removed unused create_dummy_display function
Browse files Browse the repository at this point in the history
This was probably used before we had the fake_display_manager class.
  • Loading branch information
Vultraz authored and GregoryLundberg committed Nov 30, 2017
1 parent bf4e931 commit a706d0b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
11 changes: 0 additions & 11 deletions src/game_display.cpp
Expand Up @@ -86,17 +86,6 @@ game_display::game_display(game_board& board, std::weak_ptr<wb::manager> wb,
video().clear_screen();
}

game_display* game_display::create_dummy_display()
{
static config dummy_cfg;
static config dummy_cfg2;
static game_board dummy_board(std::make_shared<terrain_type_data>(dummy_cfg), dummy_cfg2);
static tod_manager dummy_tod(dummy_cfg);
static reports rep_;
return new game_display(dummy_board, std::shared_ptr<wb::manager>(), rep_, dummy_tod,
dummy_cfg, dummy_cfg, true);
}

game_display::~game_display()
{
try {
Expand Down
2 changes: 0 additions & 2 deletions src/game_display.hpp
Expand Up @@ -44,8 +44,6 @@ class game_display : public display
const config& level,
bool dummy=false);

static game_display* create_dummy_display();

~game_display();
static game_display* get_singleton()
{
Expand Down

0 comments on commit a706d0b

Please sign in to comment.