summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan van Berkom <tristan@codethink.co.uk>2020-12-23 15:12:52 +0900
committerTristan van Berkom <tristan@codethink.co.uk>2020-12-23 15:32:25 +0900
commit082a5ca10195a37548197183de5c5ce89f1fb73b (patch)
treefdacd671355ef86289db091db99db3b4664a9ba2
parentbcb339daf7666a28dc459560d025060de4664f01 (diff)
downloadbuildstream-082a5ca10195a37548197183de5c5ce89f1fb73b.tar.gz
_pipeline.py: Remove add_elements()
-rw-r--r--src/buildstream/_pipeline.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/buildstream/_pipeline.py b/src/buildstream/_pipeline.py
index f7d8bb0d4..d365fa85a 100644
--- a/src/buildstream/_pipeline.py
+++ b/src/buildstream/_pipeline.py
@@ -184,22 +184,6 @@ class Pipeline:
# in before.
return [element for element in elements if element in visited]
- # add_elements()
- #
- # Add to a list of elements all elements that are not already in it
- #
- # Args:
- # elements (list of Element): The element list
- # add (list of Element): List of elements to add
- #
- # Returns:
- # (list): The original elements list, with elements in add that weren't
- # already in it added.
- def add_elements(self, elements, add):
- ret = elements[:]
- ret.extend(e for e in add if e not in ret)
- return ret
-
# assert_consistent()
#
# Asserts that the given list of elements are in a consistent state, that