io/FileDescriptor: remove unnecessary operator!=()
The compiler must generate this implicitly from operator==().
This commit is contained in:

committed by
Max Kellermann

parent
ea96b321dc
commit
49ad4e9f3c
@@ -37,10 +37,6 @@ public:
|
|||||||
return fd == other.fd;
|
return fd == other.fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr bool operator!=(FileDescriptor other) const noexcept {
|
|
||||||
return !(*this == other);
|
|
||||||
}
|
|
||||||
|
|
||||||
constexpr bool IsDefined() const noexcept {
|
constexpr bool IsDefined() const noexcept {
|
||||||
return fd >= 0;
|
return fd >= 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user