summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2018-11-03 11:02:49 +0100
committerJavier Jardón <jjardon@gnome.org>2020-07-30 10:22:53 +0000
commitd821566c63907637d9b9a842bdcbb61637b64fc7 (patch)
tree90ac3a2f3b4621f8e7d9d2ff3b8a8ee782bd444c
parent6593a492bd9892cef892ebc4378a5d221660658e (diff)
downloadbuildstream-d821566c63907637d9b9a842bdcbb61637b64fc7.tar.gz
_elementfactory.py: Remove unused artifacts parameter from create()
-rw-r--r--buildstream/_elementfactory.py3
-rw-r--r--buildstream/_project.py4
2 files changed, 3 insertions, 4 deletions
diff --git a/buildstream/_elementfactory.py b/buildstream/_elementfactory.py
index 282648a6e..d6591bf4c 100644
--- a/buildstream/_elementfactory.py
+++ b/buildstream/_elementfactory.py
@@ -47,7 +47,6 @@ class ElementFactory(PluginContext):
# Args:
# context (object): The Context object for processing
# project (object): The project object
- # artifacts (ArtifactCache): The artifact cache
# meta (object): The loaded MetaElement
#
# Returns: A newly created Element object of the appropriate kind
@@ -56,7 +55,7 @@ class ElementFactory(PluginContext):
# PluginError (if the kind lookup failed)
# LoadError (if the element itself took issue with the config)
#
- def create(self, context, project, artifacts, meta):
+ def create(self, context, project, meta):
element_type, default_config = self.lookup(meta.kind)
element = element_type(context, project, meta, default_config)
version = self._format_versions.get(meta.kind, 0)
diff --git a/buildstream/_project.py b/buildstream/_project.py
index 0f327c66d..ef22f4e6f 100644
--- a/buildstream/_project.py
+++ b/buildstream/_project.py
@@ -230,9 +230,9 @@ class Project():
#
def create_element(self, artifacts, meta, *, first_pass=False):
if first_pass:
- return self.first_pass_config.element_factory.create(self._context, self, artifacts, meta)
+ return self.first_pass_config.element_factory.create(self._context, self, meta)
else:
- return self.config.element_factory.create(self._context, self, artifacts, meta)
+ return self.config.element_factory.create(self._context, self, meta)
# create_source()
#