diff options
| author | Maxime Coste <mawww@kakoune.org> | 2023-10-25 20:40:04 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2023-10-25 20:40:04 +1100 |
| commit | 96884193ddad76530a09a1b095180b0ca8257b7c (patch) | |
| tree | b218d628c370dffeb77a02e1e0bfcdbf0173af42 /src/color.hh | |
| parent | d1c8622dc7ac1d0e2ec07fa7034e4396dffb244f (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.hh | 5 |
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); |
