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/command.hpp | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 src/interfaces/command.hpp (limited to 'src/interfaces/command.hpp') diff --git a/src/interfaces/command.hpp b/src/interfaces/command.hpp deleted file mode 100644 index f433eab..0000000 --- a/src/interfaces/command.hpp +++ /dev/null @@ -1,19 +0,0 @@ -#pragma once - -#include "interfaces/subscriber.hpp" - -#include - -// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions) -class ICommand : public ISubscriber -{ -public: - ~ICommand() override = default; - - virtual void execute() noexcept = 0; - - void update(const std::nullptr_t & /*context*/) noexcept override - { - execute(); - }; -}; -- cgit v1.2.3-18-g5258