aboutsummaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-05-22 23:16:35 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:59 +0200
commit3bdc5a619f2ce5663cd601f479ddef3ffb4bfa6f (patch)
tree67ccb43c2960e8a0b9c7680d5946830e99f59561 /src/game
parentb74611d2b20fc071b8a699f2ce25e61f60118d6e (diff)
refactor: remove unneccessary statusline section
Diffstat (limited to 'src/game')
-rw-r--r--src/game/game.cpp6
-rw-r--r--src/game/status_manager.cpp1
2 files changed, 0 insertions, 7 deletions
diff --git a/src/game/game.cpp b/src/game/game.cpp
index 5606e71..3bd8738 100644
--- a/src/game/game.cpp
+++ b/src/game/game.cpp
@@ -69,8 +69,6 @@ void Game::on_start() noexcept
_status_manager->set_section_body(StatusLineSection::F, "0");
- _status_manager->set_section_body(StatusLineSection::G, "lol");
-
_last_update_time = std::chrono::system_clock::now();
}
@@ -134,10 +132,6 @@ void Game::on_update() noexcept
fmt::format("{} nanoseconds", time_since_last_update.count()));
_last_update_time = std::chrono::system_clock::now();
-
- _status_manager->set_section_body(
- StatusLineSection::G,
- fmt::format("{}", _user_input_observer->is_key_pressed('v')));
}
void Game::on_exit() const noexcept
diff --git a/src/game/status_manager.cpp b/src/game/status_manager.cpp
index 9bd4f37..33174d1 100644
--- a/src/game/status_manager.cpp
+++ b/src/game/status_manager.cpp
@@ -18,7 +18,6 @@ void StatusManager::initialize() noexcept
_statusline->set_section_length(StatusLineSection::D, 20U);
_statusline->set_section_length(StatusLineSection::E, 25U);
_statusline->set_section_length(StatusLineSection::F, 50U);
- _statusline->set_section_length(StatusLineSection::G, 25U);
_statusline->initialize_background();
}