aboutsummaryrefslogtreecommitdiff
path: root/src/game/statusline.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-05-02 22:53:13 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:58 +0200
commit73290d21d996c7e596ef3c71d55a506f1aa38f2c (patch)
tree68668b44132691c8ede44329729f13faa54e4a57 /src/game/statusline.cpp
parentfb080f6fb911b1831c176a06259e384772541dd5 (diff)
refactor: clean up statusline
Diffstat (limited to 'src/game/statusline.cpp')
-rw-r--r--src/game/statusline.cpp11
1 files changed, 0 insertions, 11 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));