From 9944c97203f6d40642ef225a31fffa0d8192081a Mon Sep 17 00:00:00 2001
From: Max Kellermann <max.kellermann@ionos.com>
Date: Mon, 22 Jul 2024 16:52:38 +0200
Subject: [PATCH] util/AllocatedString: remove unnecessary operator!=()

The compiler must generate this implicitly from operator==().
---
 src/util/AllocatedString.hxx | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/util/AllocatedString.hxx b/src/util/AllocatedString.hxx
index ae3d73e58..1e1f21b3f 100644
--- a/src/util/AllocatedString.hxx
+++ b/src/util/AllocatedString.hxx
@@ -99,10 +99,6 @@ public:
 		return value == nullptr;
 	}
 
-	constexpr bool operator!=(std::nullptr_t) const noexcept {
-		return value != nullptr;
-	}
-
 	operator string_view() const noexcept {
 		return value != nullptr
 			? string_view(value)