diff options
author | Jürg Billeter <j@bitron.ch> | 2018-11-02 08:37:33 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2018-11-05 17:18:12 +0000 |
commit | 15fed21c9a1c3150dd0911e59597e284cd3526e7 (patch) | |
tree | bdf4d5639d7d5660a6ccb720623cdf9d0388a1dc | |
parent | ca855f91661b0deafba4b5605de167f46923ced0 (diff) | |
download | buildstream-15fed21c9a1c3150dd0911e59597e284cd3526e7.tar.gz |
_project.py: Remove unused artifacts parameter from create_element()
-rw-r--r-- | buildstream/_project.py | 3 | ||||
-rw-r--r-- | buildstream/element.py | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/buildstream/_project.py b/buildstream/_project.py index d275d14e3..d62077de0 100644 --- a/buildstream/_project.py +++ b/buildstream/_project.py @@ -224,14 +224,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 3e4aea6b4..e60daf529 100644 --- a/buildstream/element.py +++ b/buildstream/element.py @@ -887,7 +887,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 |