From 49ad4e9f3c1794c5ece19783b646b452e8729393 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max.kellermann@ionos.com>
Date: Mon, 22 Jul 2024 16:50:29 +0200
Subject: [PATCH] io/FileDescriptor: remove unnecessary operator!=()

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

diff --git a/src/io/FileDescriptor.hxx b/src/io/FileDescriptor.hxx
index 64ae824ce..edd009440 100644
--- a/src/io/FileDescriptor.hxx
+++ b/src/io/FileDescriptor.hxx
@@ -37,10 +37,6 @@ public:
 		return fd == other.fd;
 	}
 
-	constexpr bool operator!=(FileDescriptor other) const noexcept {
-		return !(*this == other);
-	}
-
 	constexpr bool IsDefined() const noexcept {
 		return fd >= 0;
 	}