summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Pollard <tom.pollard@codethink.co.uk>2019-03-05 13:22:11 +0000
committerbst-marge-bot <marge-bot@buildstream.build>2019-03-12 18:11:28 +0000
commitbc96d007991a44c8fcf6fbe46fcf4e3eaa0cc728 (patch)
tree750061e5b634c6b012673644078c5f40004d3ffb
parent28080d88da7ddb351aa18e7a8e18759c5de2747f (diff)
downloadbuildstream-tpollard/908.tar.gz
element.py: Remove unused local private methods due to Artifact classtpollard/908
__get_extract_key() & __get_directory() are not directly invoked within element after the transition.
-rw-r--r--buildstream/element.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/buildstream/element.py b/buildstream/element.py
index 982fd894f..b9643aee9 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -2608,37 +2608,6 @@ class Element(Plugin):
self.__whitelist_regex = re.compile(expression)
return self.__whitelist_regex.match(os.path.join(os.sep, path))
- # __get_extract_key():
- #
- # Get the key used to extract the artifact
- #
- # Returns:
- # (str): The key
- #
- def __get_extract_key(self):
-
- key = self.__artifact.get_extract_key()
-
- return key
-
- # __get_artifact_directory():
- #
- # Get a virtual directory for the artifact contents
- #
- # Args:
- # key (str): The key for the artifact to extract,
- # or None for the default key
- #
- # Returns:
- # (Directory): The virtual directory object
- # (str): The chosen key
- #
- def __get_artifact_directory(self, key=None):
-
- artifact_vdir, key = self.__artifact._get_directory(key)
-
- return (artifact_vdir, key)
-
# __get_artifact_metadata_keys():
#
# Retrieve the strong and weak keys from the given artifact.