From ea8cc60dc4af9b88d13f4a143986a3fad7e1691a Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 27 Mar 2022 20:22:52 +0200 Subject: refactor: clean up DI code --- src/DI/object_type.hpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/DI/object_type.hpp') diff --git a/src/DI/object_type.hpp b/src/DI/object_type.hpp index 84bb287..6b27682 100644 --- a/src/DI/object_type.hpp +++ b/src/DI/object_type.hpp @@ -25,14 +25,8 @@ public: ObjectType() noexcept : BaseObjectType(typeid(Object)) {} }; -class IObjectTypeHasher +class ObjectTypeHasher { public: - virtual std::size_t operator()(const BaseObjectType &object_type) const noexcept = 0; -}; - -class ObjectTypeHasher : public IObjectTypeHasher -{ -public: - std::size_t operator()(const BaseObjectType &object_type) const noexcept override; + std::size_t operator()(const BaseObjectType &object_type) const noexcept; }; -- cgit v1.2.3-18-g5258