summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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