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

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

diff --git a/src/util/AllocatedArray.hxx b/src/util/AllocatedArray.hxx
index 4cfaab3e1..d7c1ef870 100644
--- a/src/util/AllocatedArray.hxx
+++ b/src/util/AllocatedArray.hxx
@@ -100,10 +100,6 @@ public:
 		return buffer.data() == nullptr;
 	}
 
-	constexpr bool operator!=(std::nullptr_t) const noexcept {
-		return buffer.data() != nullptr;
-	}
-
 	/**
 	 * Returns true if no memory was allocated so far.
 	 */