summaryrefslogtreecommitdiff
path: root/src/file.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2023-10-25 20:40:04 +1100
committerMaxime Coste <mawww@kakoune.org>2023-10-25 20:40:04 +1100
commit96884193ddad76530a09a1b095180b0ca8257b7c (patch)
treeb218d628c370dffeb77a02e1e0bfcdbf0173af42 /src/file.hh
parentd1c8622dc7ac1d0e2ec07fa7034e4396dffb244f (diff)
Remove redundant comparison operators
Since C++20 (a != b) get automatically rewritten as !(a == b) if the != operator does not exist.
Diffstat (limited to 'src/file.hh')
-rw-r--r--src/file.hh5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/file.hh b/src/file.hh
index 65abd3c8..cfc68ac2 100644
--- a/src/file.hh
+++ b/src/file.hh
@@ -103,11 +103,6 @@ constexpr bool operator==(const timespec& lhs, const timespec& rhs)
return lhs.tv_sec == rhs.tv_sec and lhs.tv_nsec == rhs.tv_nsec;
}
-constexpr bool operator!=(const timespec& lhs, const timespec& rhs)
-{
- return not (lhs == rhs);
-}
-
enum class FilenameFlags
{
None = 0,