diff options
Diffstat (limited to 'src/buildtool/common/artifact_digest.hpp')
-rw-r--r-- | src/buildtool/common/artifact_digest.hpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/buildtool/common/artifact_digest.hpp b/src/buildtool/common/artifact_digest.hpp index c85b96b5..d633b433 100644 --- a/src/buildtool/common/artifact_digest.hpp +++ b/src/buildtool/common/artifact_digest.hpp @@ -21,7 +21,6 @@ #include <utility> // std::move #include "gsl/gsl" -#include "src/buildtool/compatibility/compatibility.hpp" #include "src/buildtool/crypto/hash_info.hpp" #include "src/utils/cpp/gsl.hpp" #include "src/utils/cpp/hash_combine.hpp" @@ -36,13 +35,6 @@ class ArtifactDigest final { std::size_t size) noexcept : size_{size}, hash_{hash_info.Hash()}, is_tree_{hash_info.IsTree()} {} - ArtifactDigest(std::string hash, std::size_t size, bool is_tree) noexcept - : size_{size}, - hash_{std::move(hash)}, - // Tree information is only stored in a digest in native mode and - // false in compatible mode. - is_tree_{not Compatibility::IsCompatible() and is_tree} {} - [[nodiscard]] auto hash() const& noexcept -> std::string const& { return hash_; } |