summaryrefslogtreecommitdiff
path: root/src/string_utils.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/string_utils.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/string_utils.hh')
-rw-r--r--src/string_utils.hh2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/string_utils.hh b/src/string_utils.hh
index 13d15018..3cd7c825 100644
--- a/src/string_utils.hh
+++ b/src/string_utils.hh
@@ -82,8 +82,6 @@ struct WrapView
Iterator operator++(int) { auto copy = *this; ++(*this); return copy; }
bool operator==(Iterator other) const { return m_remaining == other.m_remaining and m_current == other.m_current; }
- bool operator!=(Iterator other) const { return not (*this == other); }
-
StringView operator*() { return m_current; }
private: