diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-11-20 20:24:17 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-11-20 20:24:17 +0100 |
commit | 397da65e03ec681922aeea3881918026d36068a7 (patch) | |
tree | dca704ae1ad3241e0c559e9037c300ccede8a437 /src/crepe/api/EventHandler.hpp | |
parent | 9f882131f09410113d757d96e5aa0322aa5584bd (diff) |
result of loeks temper tantrum
Diffstat (limited to 'src/crepe/api/EventHandler.hpp')
-rw-r--r-- | src/crepe/api/EventHandler.hpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/crepe/api/EventHandler.hpp b/src/crepe/api/EventHandler.hpp index a1e774d..8d8136b 100644 --- a/src/crepe/api/EventHandler.hpp +++ b/src/crepe/api/EventHandler.hpp @@ -1,4 +1,3 @@ - #include <typeindex> #include "EventHandler.h" @@ -8,8 +7,7 @@ namespace crepe { // Implementation of EventHandlerWrapper constructor template <typename EventType> EventHandlerWrapper<EventType>::EventHandlerWrapper(const EventHandler<EventType> & handler) - : handler(handler), - handler_type(handler.target_type().name()) {} + : handler(handler){} // Implementation of EventHandlerWrapper::call template <typename EventType> @@ -17,10 +15,5 @@ bool EventHandlerWrapper<EventType>::call(const Event & e) { return this->handler(static_cast<const EventType &>(e)); } -// Implementation of EventHandlerWrapper::get_type -template <typename EventType> -std::string EventHandlerWrapper<EventType>::get_type() const { - return this->handler_type; -} } //namespace crepe |