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.hpp | |
parent | 33cb83b585e618a9c7d7e643d5ee6ee57626c4dc (diff) | |
download | justbuild-31b1aab24c24b5e4d48979aa61576b20a8ec034d.tar.gz |
Remove redundant operator less
...from ObjectInfo and ArtifactDigest
Diffstat (limited to 'src/buildtool/common/artifact.hpp')
-rw-r--r-- | src/buildtool/common/artifact.hpp | 8 |
1 files changed, 0 insertions, 8 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 { |