From 73290d21d996c7e596ef3c71d55a506f1aa38f2c Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 2 May 2022 22:53:13 +0200 Subject: refactor: clean up statusline --- src/game/statusline.cpp | 11 ----------- src/game/statusline.hpp | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) (limited to 'src/game') diff --git a/src/game/statusline.cpp b/src/game/statusline.cpp index 58a317b..1abb87b 100644 --- a/src/game/statusline.cpp +++ b/src/game/statusline.cpp @@ -3,13 +3,8 @@ #include "engine/escape.hpp" #include "util/color.hpp" -#include -#include -#include -#include #include #include -#include StatusLine::StatusLine( std::shared_ptr cursor_controller, @@ -48,12 +43,6 @@ void StatusLine::set_status( auto section_length = _sections_lengths[section]; - /* - auto status = status.length() > section_length - ? status_str.substr(0, section_length) - : status_str; - */ - fmt::print("{}{}", background_color, status); fmt::print(RESET_ALL_MODES, fmt::arg("esc", ESC)); diff --git a/src/game/statusline.hpp b/src/game/statusline.hpp index 7883051..181090d 100644 --- a/src/game/statusline.hpp +++ b/src/game/statusline.hpp @@ -6,8 +6,8 @@ #include "engine/data/vector2.hpp" -#include #include + #include #include #include -- cgit v1.2.3-18-g5258