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/interfaces/publisher.hpp | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 src/interfaces/publisher.hpp (limited to 'src/interfaces/publisher.hpp') diff --git a/src/interfaces/publisher.hpp b/src/interfaces/publisher.hpp deleted file mode 100644 index 2c47c34..0000000 --- a/src/interfaces/publisher.hpp +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once - -#include "interfaces/subscriber.hpp" - -#include -#include - -template -// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions) -class IPublisher -{ -public: - virtual ~IPublisher() noexcept = default; - - virtual void subscribe( - const Event &event, - const std::shared_ptr> &subscriber) noexcept = 0; - - virtual void - notify_subscribers(const Event &event, const Context &context) const noexcept = 0; -}; -- cgit v1.2.3-18-g5258