summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarius Makovsky <traveltissues@protonmail.com>2019-12-05 16:13:43 +0000
committerbst-marge-bot <marge-bot@buildstream.build>2019-12-09 08:08:31 +0000
commitdc7a40995c16a4dcd7b94695c2db251bab30f004 (patch)
treecfa7dbc0649d931719188a904f69e223d475a93c
parent16d2d42d9faccf87acd589d62c2a47284481826c (diff)
downloadbuildstream-dc7a40995c16a4dcd7b94695c2db251bab30f004.tar.gz
_pipeline: remove subtract_elements()
-rw-r--r--src/buildstream/_pipeline.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/buildstream/_pipeline.py b/src/buildstream/_pipeline.py
index ed630d933..aee0c55da 100644
--- a/src/buildstream/_pipeline.py
+++ b/src/buildstream/_pipeline.py
@@ -317,21 +317,6 @@ class Pipeline:
# in before.
return [element for element in elements if element in visited]
- # subtract_elements()
- #
- # Subtract a subset of elements
- #
- # Args:
- # elements (list of Element): The element list
- # subtract (list of Element): List of elements to subtract from elements
- #
- # Returns:
- # (list): The original elements list, with elements in subtract removed
- #
- def subtract_elements(self, elements, subtract):
- subtract_set = set(subtract)
- return [e for e in elements if e not in subtract_set]
-
# add_elements()
#
# Add to a list of elements all elements that are not already in it