diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-09 11:18:30 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-09 11:18:30 +0200 |
commit | 31b1aab24c24b5e4d48979aa61576b20a8ec034d (patch) | |
tree | aa6b90238214ecab0a8ca87bd940977da11726e6 /src/buildtool/common/artifact_digest.hpp | |
parent | 33cb83b585e618a9c7d7e643d5ee6ee57626c4dc (diff) | |
download | justbuild-31b1aab24c24b5e4d48979aa61576b20a8ec034d.tar.gz |
Remove redundant operator less
...from ObjectInfo and ArtifactDigest
Diffstat (limited to 'src/buildtool/common/artifact_digest.hpp')
-rw-r--r-- | src/buildtool/common/artifact_digest.hpp | 6 |
1 files changed, 0 insertions, 6 deletions
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_{}; |