summaryrefslogtreecommitdiff
path: root/src/keys.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2020-11-15 08:57:19 +1100
committerMaxime Coste <mawww@kakoune.org>2021-11-21 09:44:56 +1100
commitab9d78f50ddba621f875cf5ceb9da3e20d0a04f5 (patch)
tree776f88ea6befeab321ae8bd4d881e556a264916f /src/keys.hh
parentfb4cef5b61639c507e6c5740cc5973d0d79ba673 (diff)
Convert comparisons to spaceship operator
Diffstat (limited to 'src/keys.hh')
-rw-r--r--src/keys.hh1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/keys.hh b/src/keys.hh
index 0f5fc0e7..f06a7e2f 100644
--- a/src/keys.hh
+++ b/src/keys.hh
@@ -84,7 +84,6 @@ struct Key
constexpr uint64_t val() const { return (uint64_t)modifiers << 32 | key; }
constexpr bool operator==(Key other) const { return val() == other.val(); }
- constexpr bool operator!=(Key other) const { return val() != other.val(); }
constexpr bool operator<(Key other) const { return val() < other.val(); }
constexpr DisplayCoord coord() const { return {(int)((key & 0xFFFF0000) >> 16), (int)(key & 0x0000FFFF)}; }