From 18e1db1fb8692752f64d3912c3b5ff1818be9028 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 23 May 2022 18:12:39 +0200 Subject: refactor: replace last subscriber patterned code --- src/engine/user/cursor.hpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/engine/user/cursor.hpp') diff --git a/src/engine/user/cursor.hpp b/src/engine/user/cursor.hpp index ae6fe3c..de8c3ae 100644 --- a/src/engine/user/cursor.hpp +++ b/src/engine/user/cursor.hpp @@ -38,7 +38,7 @@ public: void move(const Vector2 &direction, const uint32_t &amount) noexcept override; - void move_to(const Vector2 &position, bool silent) noexcept override; + void move_to(const Vector2 &position) noexcept override; [[nodiscard]] auto where() const noexcept -> Vector2 override; @@ -48,13 +48,6 @@ public: void show() noexcept override; - void subscribe(const Event &event, const Subscriber &subscriber) noexcept override; - - void notify_subscribers(const Event &event, const Context &context) - const noexcept override; - private: Vector2 _position; - - std::unordered_map> _subscribers; }; -- cgit v1.2.3-18-g5258