diff options
-rw-r--r-- | src/buildstream/_cas/cascache.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/buildstream/_cas/cascache.py b/src/buildstream/_cas/cascache.py index bb2abc6c8..083c8e8dc 100644 --- a/src/buildstream/_cas/cascache.py +++ b/src/buildstream/_cas/cascache.py @@ -547,22 +547,6 @@ class CASCache: # Local Private Methods # ################################################ - def _get_subdir(self, tree, subdir): - head, name = os.path.split(subdir) - if head: - tree = self._get_subdir(tree, head) - - directory = remote_execution_pb2.Directory() - - with open(self.objpath(tree), "rb") as f: - directory.ParseFromString(f.read()) - - for dirnode in directory.directories: - if dirnode.name == name: - return dirnode.digest - - raise CASCacheError("Subdirectory {} not found".format(name)) - def _reachable_refs_dir(self, reachable, tree, update_mtime=False, check_exists=False): if tree.hash in reachable: return |