aboutsummaryrefslogtreecommitdiff
path: root/src/commands/move_cursor.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-20 20:37:43 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:57 +0200
commit1972939ebde39a3e90a50b021b2322d028f344de (patch)
tree9ee0a7c78f082bec084189906f28dc679a20d339 /src/commands/move_cursor.cpp
parente6644d6b235005de9ba1b9884472fa5f5d8d6074 (diff)
refactor: move updating status from the move cursor command
Diffstat (limited to 'src/commands/move_cursor.cpp')
-rw-r--r--src/commands/move_cursor.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/commands/move_cursor.cpp b/src/commands/move_cursor.cpp
index 8dd7db7..1d2b4e8 100644
--- a/src/commands/move_cursor.cpp
+++ b/src/commands/move_cursor.cpp
@@ -1,16 +1,9 @@
#include "move_cursor.hpp"
-#include "strings.hpp"
-
-#include <fmt/core.h>
-
MoveCursorCommand::MoveCursorCommand(
const Vector2 &direction, const std::shared_ptr<ICursorController> &cursor_controller,
- const std::shared_ptr<IScene> &scene, const std::shared_ptr<IWindow> &window) noexcept
- : _direction(direction),
- _cursor_controller(cursor_controller),
- _scene(scene),
- _window(window)
+ const std::shared_ptr<IWindow> &window) noexcept
+ : _direction(direction), _cursor_controller(cursor_controller), _window(window)
{
}
@@ -30,8 +23,4 @@ void MoveCursorCommand::execute() noexcept
}
_cursor_controller->move_to(new_position);
-
- _scene->write_status(fmt::format(STATUS_BAR_COORDINATES,
- fmt::arg("x", new_position.get_x()),
- fmt::arg("y", new_position.get_y())));
}