summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2018-11-02 08:37:33 +0100
committerJavier Jardón <jjardon@gnome.org>2020-07-30 10:22:53 +0000
commite9f34c3ce001a6c8581951b562c1ac005381151e (patch)
tree71d9f836708b57775ffd2060475e69fe8cf2385b
parentd821566c63907637d9b9a842bdcbb61637b64fc7 (diff)
downloadbuildstream-e9f34c3ce001a6c8581951b562c1ac005381151e.tar.gz
_project.py: Remove unused artifacts parameter from create_element()
-rw-r--r--buildstream/_project.py3
-rw-r--r--buildstream/element.py2
2 files changed, 2 insertions, 3 deletions
diff --git a/buildstream/_project.py b/buildstream/_project.py
index ef22f4e6f..9a1a2f3dc 100644
--- a/buildstream/_project.py
+++ b/buildstream/_project.py
@@ -221,14 +221,13 @@ class Project():
# Instantiate and return an element
#
# Args:
- # artifacts (ArtifactCache): The artifact cache
# meta (MetaElement): The loaded MetaElement
# first_pass (bool): Whether to use first pass configuration (for junctions)
#
# Returns:
# (Element): A newly created Element object of the appropriate kind
#
- def create_element(self, artifacts, meta, *, first_pass=False):
+ def create_element(self, meta, *, first_pass=False):
if first_pass:
return self.first_pass_config.element_factory.create(self._context, self, meta)
else:
diff --git a/buildstream/element.py b/buildstream/element.py
index cfabd615e..78c5095dd 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -913,7 +913,7 @@ class Element(Plugin):
if meta in cls.__instantiated_elements:
return cls.__instantiated_elements[meta]
- element = meta.project.create_element(artifacts, meta, first_pass=meta.first_pass)
+ element = meta.project.create_element(meta, first_pass=meta.first_pass)
cls.__instantiated_elements[meta] = element
# Instantiate sources