summaryrefslogtreecommitdiff
path: root/src/color.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2023-10-25 20:40:04 +1100
committerMaxime Coste <mawww@kakoune.org>2023-10-25 20:40:04 +1100
commit96884193ddad76530a09a1b095180b0ca8257b7c (patch)
treeb218d628c370dffeb77a02e1e0bfcdbf0173af42 /src/color.hh
parentd1c8622dc7ac1d0e2ec07fa7034e4396dffb244f (diff)
Remove redundant comparison operators
Since C++20 (a != b) get automatically rewritten as !(a == b) if the != operator does not exist.
Diffstat (limited to 'src/color.hh')
-rw-r--r--src/color.hh5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/color.hh b/src/color.hh
index 85babd98..151547c4 100644
--- a/src/color.hh
+++ b/src/color.hh
@@ -69,11 +69,6 @@ constexpr bool operator==(Color lhs, Color rhs)
lhs.r == rhs.r and lhs.g == rhs.g and lhs.b == rhs.b;
}
-constexpr bool operator!=(Color lhs, Color rhs)
-{
- return not (lhs == rhs);
-}
-
Color str_to_color(StringView color);
String to_string(Color color);