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_digest.hpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/buildtool/common/artifact_digest.hpp') 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(is_tree_) < - static_cast(other.is_tree_))); - } - private: std::size_t size_{}; std::string hash_{}; -- cgit v1.2.3