diff options
Diffstat (limited to 'src/buildtool/common')
-rw-r--r-- | src/buildtool/common/artifact.hpp | 8 | ||||
-rw-r--r-- | src/buildtool/common/artifact_digest.hpp | 6 |
2 files changed, 0 insertions, 14 deletions
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<int>(failed) < - static_cast<int>(other.failed))); - } - // Create string of the form '[hash:size:type]' [[nodiscard]] auto ToString(bool size_unknown = false) const noexcept -> std::string { diff --git a/src/buildtool/common/artifact_digest.hpp b/src/buildtool/common/artifact_digest.hpp index d7683d60..93c41464 100644 --- a/src/buildtool/common/artifact_digest.hpp +++ b/src/buildtool/common/artifact_digest.hpp @@ -106,12 +106,6 @@ class ArtifactDigest final { return std::nullopt; } - [[nodiscard]] auto operator<(ArtifactDigest const& other) const -> bool { - return (hash_ < other.hash_) or - ((hash_ == other.hash_) and (static_cast<int>(is_tree_) < - static_cast<int>(other.is_tree_))); - } - private: std::size_t size_{}; std::string hash_{}; |