diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2020-11-12 19:16:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-12 19:16:02 +0100 |
commit | 68139a28eb8b43b3685b81c77258912ffc5e0b8f (patch) | |
tree | 8e602c3649da387238374594f030811dda53f6f7 /src/client/keycode.h | |
parent | adffef2b94f2d9cb3104cbc75e315cda3c0728aa (diff) | |
download | minetest-68139a28eb8b43b3685b81c77258912ffc5e0b8f.tar.gz minetest-68139a28eb8b43b3685b81c77258912ffc5e0b8f.tar.bz2 minetest-68139a28eb8b43b3685b81c77258912ffc5e0b8f.zip |
Revert "Replace MyEventReceiver KeyList with std::unordered_set" (#10622)
This reverts commit 787561b29afdbc78769f68c2f5c4f2cff1b32340.
Diffstat (limited to 'src/client/keycode.h')
-rw-r--r-- | src/client/keycode.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/client/keycode.h b/src/client/keycode.h index 263b722c7..7036705d1 100644 --- a/src/client/keycode.h +++ b/src/client/keycode.h @@ -24,20 +24,12 @@ with this program; if not, write to the Free Software Foundation, Inc., #include <IEventReceiver.h> #include <string> -class KeyPress; -namespace std -{ - template <> struct hash<KeyPress>; -} - /* A key press, consisting of either an Irrlicht keycode or an actual char */ class KeyPress { public: - friend struct std::hash<KeyPress>; - KeyPress() = default; KeyPress(const char *name); @@ -63,17 +55,6 @@ protected: std::string m_name = ""; }; -namespace std -{ - template <> struct hash<KeyPress> - { - size_t operator()(const KeyPress &key) const - { - return key.Key; - } - }; -} - extern const KeyPress EscapeKey; extern const KeyPress CancelKey; |