summaryrefslogtreecommitdiff
path: root/buildstream/element.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-09-09 19:24:02 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-09-10 16:53:57 +0900
commit335b2fdd56802e26f127703964846d5593eca6a3 (patch)
tree079d13b2d121eead6998c67ec8a725d6538df880 /buildstream/element.py
parent742908ea79abf0a6ff00a522e12fa32ba4a0aa7c (diff)
downloadbuildstream-335b2fdd56802e26f127703964846d5593eca6a3.tar.gz
element.py: Remove _get_artifact_cache() accessor.
The artifact cache is anyway a singleton, the Element itself has an internal handle on the artifact cache because it is needed very frequently; but an artifact cache is not element specific and should not be looked up by surrounding code on a per element basis. Updated _scheduler/queues/queue.py, _scheduler/queues/buildqueue.py and _scheduler/jobs/elementjob.py to get the artifact cache directly from the Platform
Diffstat (limited to 'buildstream/element.py')
-rw-r--r--buildstream/element.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/buildstream/element.py b/buildstream/element.py
index 7ba680aac..6c01c0dd4 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -1912,16 +1912,6 @@ class Element(Plugin):
workspaces = self._get_context().get_workspaces()
return workspaces.get_workspace(self._get_full_name())
- # _get_artifact_cache()
- #
- # Accessor for the artifact cache
- #
- # Returns:
- # (ArtifactCache): The artifact cache
- #
- def _get_artifact_cache(self):
- return self.__artifacts
-
# _write_script():
#
# Writes a script to the given directory.