From 31b1aab24c24b5e4d48979aa61576b20a8ec034d Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Mon, 9 Sep 2024 11:18:30 +0200 Subject: Remove redundant operator less ...from ObjectInfo and ArtifactDigest --- src/buildtool/common/artifact.hpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/buildtool/common/artifact.hpp') diff --git a/src/buildtool/common/artifact.hpp b/src/buildtool/common/artifact.hpp index 56c05e2f..ec36964e 100644 --- a/src/buildtool/common/artifact.hpp +++ b/src/buildtool/common/artifact.hpp @@ -48,14 +48,6 @@ class Artifact { return not(*this == other); } - [[nodiscard]] auto operator<(ObjectInfo const& other) const -> bool { - return (digest < other.digest) or - ((digest == other.digest) and (type < other.type)) or - ((digest == other.digest) and (type == other.type) and - (static_cast(failed) < - static_cast(other.failed))); - } - // Create string of the form '[hash:size:type]' [[nodiscard]] auto ToString(bool size_unknown = false) const noexcept -> std::string { -- cgit v1.2.3