From 0cc9ef0aee596543c6aca219032154ed1b37480e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 10 Jul 2024 20:13:01 +0200 Subject: [PATCH] util/DereferenceIterator: remove unnecessary operator!=() The compiler must generate this implicitly from operator==(). --- src/util/DereferenceIterator.hxx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/util/DereferenceIterator.hxx b/src/util/DereferenceIterator.hxx index 9b62c08b0..6927019f3 100644 --- a/src/util/DereferenceIterator.hxx +++ b/src/util/DereferenceIterator.hxx @@ -80,8 +80,4 @@ public: bool operator==(const DereferenceIterator &other) const noexcept { return original == other.original; } - - bool operator!=(const DereferenceIterator &other) const noexcept { - return original != other.original; - } };