From 1c6acd97737f4d49b5e0d1dbb97e3c1d75d0e145 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Fri, 24 May 2024 11:01:03 +0200 Subject: Use common interface for reading tree entries and leafs ...in LocalApi and BazelApi. --- src/buildtool/storage/local_cas.hpp | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'src/buildtool/storage/local_cas.hpp') 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(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::vector>>; - - /// \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::vector>>; - /// \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. -- cgit v1.2.3