From bc758cece0263012501aac436857c862f4e2fdeb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 22 Jul 2024 16:53:43 +0200 Subject: [PATCH] util/StringPointer: remove unnecessary operator!=() The compiler must generate this implicitly from operator==(). --- src/util/StringPointer.hxx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/util/StringPointer.hxx b/src/util/StringPointer.hxx index 7b7ba9685..a3e1c53da 100644 --- a/src/util/StringPointer.hxx +++ b/src/util/StringPointer.hxx @@ -31,10 +31,6 @@ public: return value == nullptr; } - constexpr bool operator!=(std::nullptr_t) const noexcept { - return value != nullptr; - } - /** * Check if this is a "nulled" instance. A "nulled" instance * must not be used.