summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2019-02-17 18:17:22 +0100
committerJürg Billeter <j@bitron.ch>2019-02-18 11:29:25 +0100
commitcdcf0dc5f0b05ba77deb3fed9a9f90841e72323d (patch)
tree445b42dd06640fa67207867901745370ee5fa344
parentf5660fa0898cb58412d56c9d7e7c56915f6f1ab1 (diff)
downloadbuildstream-cdcf0dc5f0b05ba77deb3fed9a9f90841e72323d.tar.gz
_casbaseddirectory.py: Remove unused find_root() method
-rw-r--r--buildstream/storage/_casbaseddirectory.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/buildstream/storage/_casbaseddirectory.py b/buildstream/storage/_casbaseddirectory.py
index 8eaa835f2..7e8093ede 100644
--- a/buildstream/storage/_casbaseddirectory.py
+++ b/buildstream/storage/_casbaseddirectory.py
@@ -277,14 +277,6 @@ class CasBasedDirectory(Directory):
directory_list))
return None
- def find_root(self):
- """ Finds the root of this directory tree by following 'parent' until there is
- no parent. """
- if self.parent:
- return self.parent.find_root()
- else:
- return self
-
def _check_replacement(self, name, path_prefix, fileListResult):
""" Checks whether 'name' exists, and if so, whether we can overwrite it.
If we can, add the name to 'overwritten_files' and delete the existing entry.