summaryrefslogtreecommitdiff
path: root/src/buildtool/storage/local_cas.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-05-24 11:01:03 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-05-27 16:36:58 +0200
commit1c6acd97737f4d49b5e0d1dbb97e3c1d75d0e145 (patch)
tree135a90a6085d3e7205349c2f39759db5701f388b /src/buildtool/storage/local_cas.hpp
parent20afd06b78c614299dc05e2044fc8ffe5dfa5977 (diff)
downloadjustbuild-1c6acd97737f4d49b5e0d1dbb97e3c1d75d0e145.tar.gz
Use common interface for reading tree entries and leafs
...in LocalApi and BazelApi.
Diffstat (limited to 'src/buildtool/storage/local_cas.hpp')
-rw-r--r--src/buildtool/storage/local_cas.hpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/buildtool/storage/local_cas.hpp b/src/buildtool/storage/local_cas.hpp
index 451e749c..9288e423 100644
--- a/src/buildtool/storage/local_cas.hpp
+++ b/src/buildtool/storage/local_cas.hpp
@@ -191,33 +191,6 @@ class LocalCAS {
return Splice<ObjectType::Tree>(digest, parts);
}
- /// \brief Traverses a tree recursively and retrieves object infos of all
- /// found blobs (leafs). Tree objects are by default not added to the result
- /// list, but converted to a path name.
- /// \param tree_digest Digest of the tree.
- /// \param parent Local parent path.
- /// \param include_trees Include leaf tree objects (empty trees).
- /// \returns Pair of vectors, first containing filesystem paths, second
- /// containing object infos.
- [[nodiscard]] auto RecursivelyReadTreeLeafs(
- bazel_re::Digest const& tree_digest,
- std::filesystem::path const& parent,
- bool include_trees = false) const noexcept
- -> std::optional<std::pair<std::vector<std::filesystem::path>,
- std::vector<Artifact::ObjectInfo>>>;
-
- /// \brief Reads the flat content of a tree and returns object infos of all
- /// its direct entries (trees and blobs).
- /// \param tree_digest Digest of the tree.
- /// \param parent Local parent path.
- /// \returns Pair of vectors, first containing filesystem paths, second
- /// containing object infos.
- [[nodiscard]] auto ReadDirectTreeEntries(
- bazel_re::Digest const& tree_digest,
- std::filesystem::path const& parent) const noexcept
- -> std::optional<std::pair<std::vector<std::filesystem::path>,
- std::vector<Artifact::ObjectInfo>>>;
-
/// \brief Check whether all parts of the tree are in the storage.
/// \param tree_digest Digest of the tree to be checked.
/// \param tree_data Content of the tree.