summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos Evripiotis <jevripiotis@bloomberg.net>2019-07-05 16:18:06 +0100
committerAngelos Evripiotis <angelos.evripiotis@gmail.com>2019-07-09 20:48:09 +0000
commita2c63af692941459be1e65776f30c42e06287230 (patch)
tree7444af6427fa2bf0d6f71941ae35f8cc9a173127
parentf20cf0decbe1089895a101efb504394b3e098528 (diff)
downloadbuildstream-a2c63af692941459be1e65776f30c42e06287230.tar.gz
source: rm unused _cache(), __source_cache
-rw-r--r--src/buildstream/source.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/buildstream/source.py b/src/buildstream/source.py
index 76c56fd1d..f8b5d3f88 100644
--- a/src/buildstream/source.py
+++ b/src/buildstream/source.py
@@ -312,8 +312,6 @@ class Source(Plugin):
super().__init__("{}-{}".format(meta.element_name, meta.element_index),
context, project, provenance, "source", unique_id=unique_id)
- self.__source_cache = context.sourcecache
-
self.__element_name = meta.element_name # The name of the element owning this source
self.__element_index = meta.element_index # The index of the source in the owning element's source list
self.__element_kind = meta.element_kind # The kind of the element owning this source
@@ -726,10 +724,6 @@ class Source(Plugin):
else:
self.__do_fetch()
- def _cache(self, previous_sources):
- # stage the source into the source cache
- self.__source_cache.commit(self, previous_sources)
-
# Wrapper for stage() api which gives the source
# plugin a fully constructed path considering the
# 'directory' option