summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2020-02-10 07:47:00 +0100
committerJürg Billeter <j@bitron.ch>2020-02-10 07:47:00 +0100
commitb5477b27c821f1e2e35ff84e850786af0522f492 (patch)
tree097a85c62959ac790b3ee8d07055c367df567c8f
parent9319c6fcc172b47f6305c1f110c83cd1b1706638 (diff)
downloadbuildstream-juerg/remove-unused.tar.gz
cascache.py: Remove unused _get_subdir() methodjuerg/remove-unused
-rw-r--r--src/buildstream/_cas/cascache.py16
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