From 3bdc5a619f2ce5663cd601f479ddef3ffb4bfa6f Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 22 May 2022 23:16:35 +0200 Subject: refactor: remove unneccessary statusline section --- src/game/game.cpp | 6 ------ src/game/status_manager.cpp | 1 - src/interfaces/statusline.hpp | 1 - 3 files changed, 8 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(); } diff --git a/src/interfaces/statusline.hpp b/src/interfaces/statusline.hpp index c66a2d3..2fefa6d 100644 --- a/src/interfaces/statusline.hpp +++ b/src/interfaces/statusline.hpp @@ -15,7 +15,6 @@ enum StatusLineSection D = 3, E = 4, F = 5, - G = 6 }; // NOLINTNEXTLINE(cppcoreguidelines-special-member-functions) -- cgit v1.2.3-18-g5258