net/SocketAdddress: remove unnecessary operator!=()

The compiler must generate this implicitly from operator==().
This commit is contained in:
Max Kellermann 2024-07-22 16:49:37 +02:00 committed by Max Kellermann
parent bc758cece0
commit ea96b321dc
4 changed files with 0 additions and 19 deletions

View File

@ -67,12 +67,6 @@ public:
return (SocketAddress)*this == std::forward<T>(other);
}
template<typename T>
[[gnu::pure]]
bool operator!=(T &&other) const noexcept {
return !(*this == std::forward<T>(other));
}
[[gnu::const]]
static AllocatedSocketAddress Null() noexcept {
return AllocatedSocketAddress(nullptr, 0);

View File

@ -121,9 +121,4 @@ public:
bool operator==(SocketAddress other) const noexcept {
return static_cast<const SocketAddress>(*this) == other;
}
[[nodiscard]] [[gnu::pure]]
bool operator!=(SocketAddress other) const noexcept {
return !(*this == other);
}
};

View File

@ -169,8 +169,4 @@ public:
[[gnu::pure]]
bool operator==(const SocketAddress other) const noexcept;
bool operator!=(const SocketAddress other) const noexcept {
return !(*this == other);
}
};

View File

@ -141,8 +141,4 @@ public:
bool operator==(SocketAddress other) const noexcept {
return (SocketAddress)*this == other;
}
bool operator!=(SocketAddress other) const noexcept {
return !(*this == other);
}
};