From f3d38b31ed2343fb4ac03fbd9793b3306e830833 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Mon, 18 Dec 2023 14:12:35 +0100 Subject: [PATCH] Remove unnecessary specialization of std::hash. --- src/zimcheck/checks.cpp | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/zimcheck/checks.cpp b/src/zimcheck/checks.cpp index ccafc663..446544b0 100644 --- a/src/zimcheck/checks.cpp +++ b/src/zimcheck/checks.cpp @@ -18,27 +18,6 @@ #include #include -// Specialization of std::hash needed for our unordered_map. Can be removed in c++14 -namespace std { - template <> struct hash { - size_t operator() (const LogTag &t) const { return size_t(t); } - }; -} - -// Specialization of std::hash needed for our unordered_map. Can be removed in c++14 -namespace std { - template <> struct hash { - size_t operator() (const TestType &t) const { return size_t(t); } - }; -} - -// Specialization of std::hash needed for our unordered_map. Can be removed in c++14 -namespace std { - template <> struct hash { - size_t operator() (const MsgId &msgid) const { return size_t(msgid); } - }; -} - namespace {