diff options
author | HampusM <hampus@hampusmat.com> | 2022-05-23 18:12:39 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:59 +0200 |
commit | 18e1db1fb8692752f64d3912c3b5ff1818be9028 (patch) | |
tree | 38ccd9b4f29e5b2fa0fc07f84b425aa80378301a /src/game/statusline_subscriber_adapter.hpp | |
parent | 65ca89da7933b5927e31ca6f29f28a24b2838ebe (diff) |
refactor: replace last subscriber patterned code
Diffstat (limited to 'src/game/statusline_subscriber_adapter.hpp')
-rw-r--r-- | src/game/statusline_subscriber_adapter.hpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/game/statusline_subscriber_adapter.hpp b/src/game/statusline_subscriber_adapter.hpp deleted file mode 100644 index c0c5805..0000000 --- a/src/game/statusline_subscriber_adapter.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once - -#include "interfaces/statusline.hpp" -#include "interfaces/statusline_subscriber_adapter.hpp" -#include "interfaces/subscriber.hpp" - -#include <memory> -#include <string> -#include <vector> - -template <typename Context> -class StatusLineSubscriberAdapter : public ISubscriber<Context> -{ -public: - StatusLineSubscriberAdapter( - std::shared_ptr<IStatusManager> status_manager, - std::string (*format_func)(std::size_t section_index, const Context &context), - const std::vector<StatusLineSection> §ions) noexcept; - - void update(const Context &context) noexcept override; - -private: - std::shared_ptr<IStatusManager> _status_manager; - - std::string (*_format_func)(std::size_t section_index, const Context &context); - std::vector<StatusLineSection> _sections; -}; - -#include "statusline_subscriber_adapter.tpp" |