aboutsummaryrefslogtreecommitdiff
path: root/src/DI/object_type.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-27 20:22:52 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:57 +0200
commitea8cc60dc4af9b88d13f4a143986a3fad7e1691a (patch)
treeccb622de7c03aef041916b1bd451d10939fbf861 /src/DI/object_type.hpp
parent3b326d77dceb3cc70abd54943689d76ecd96fc8b (diff)
refactor: clean up DI code
Diffstat (limited to 'src/DI/object_type.hpp')
-rw-r--r--src/DI/object_type.hpp10
1 files changed, 2 insertions, 8 deletions
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;
};