diff options
author | HampusM <hampus@hampusmat.com> | 2022-05-02 22:53:13 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:58 +0200 |
commit | 73290d21d996c7e596ef3c71d55a506f1aa38f2c (patch) | |
tree | 68668b44132691c8ede44329729f13faa54e4a57 /src | |
parent | fb080f6fb911b1831c176a06259e384772541dd5 (diff) |
refactor: clean up statusline
Diffstat (limited to 'src')
-rw-r--r-- | src/game/statusline.cpp | 11 | ||||
-rw-r--r-- | src/game/statusline.hpp | 2 |
2 files changed, 1 insertions, 12 deletions
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 <algorithm> -#include <iostream> -#include <numeric> -#include <ranges> #include <string> #include <utility> -#include <vector> StatusLine::StatusLine( std::shared_ptr<ICursorController> 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 <cstdint> #include <fmt/core.h> + #include <memory> #include <string_view> #include <unordered_map> |