summaryrefslogtreecommitdiff
path: root/src/buildstream/_pipeline.py
diff options
context:
space:
mode:
authorDarius Makovsky <traveltissues@protonmail.com>2019-12-05 16:13:22 +0000
committerbst-marge-bot <marge-bot@buildstream.build>2019-12-09 08:08:31 +0000
commit16d2d42d9faccf87acd589d62c2a47284481826c (patch)
tree33821362eb1fe42475448d492ed850903804cdf8 /src/buildstream/_pipeline.py
parent21ddcf231ee1763dcf0bffdcbeccc79ff5621df9 (diff)
downloadbuildstream-16d2d42d9faccf87acd589d62c2a47284481826c.tar.gz
_pipeline: remove targets_include()
Diffstat (limited to 'src/buildstream/_pipeline.py')
-rw-r--r--src/buildstream/_pipeline.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/buildstream/_pipeline.py b/src/buildstream/_pipeline.py
index a40d89861..ed630d933 100644
--- a/src/buildstream/_pipeline.py
+++ b/src/buildstream/_pipeline.py
@@ -317,23 +317,6 @@ class Pipeline:
# in before.
return [element for element in elements if element in visited]
- # targets_include()
- #
- # Checks whether the given targets are, or depend on some elements
- #
- # Args:
- # targets (list of Element): A list of targets
- # elements (list of Element): List of elements to check
- #
- # Returns:
- # (bool): True if all of `elements` are the `targets`, or are
- # somehow depended on by `targets`.
- #
- def targets_include(self, targets, elements):
- target_element_set = set(self.dependencies(targets, Scope.ALL))
- element_set = set(elements)
- return element_set.issubset(target_element_set)
-
# subtract_elements()
#
# Subtract a subset of elements