summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTristan van Berkom <tristan.vanberkom@codethink.co.uk>2020-06-11 18:54:12 +0900
committerTristan van Berkom <tristan.vanberkom@codethink.co.uk>2020-06-11 19:45:47 +0900
commitd5121cc10ecbc71478c06a6b0f3b90ecbc960602 (patch)
tree83f8ed0dfa9c4e90a42e5d0ef6855e515d908792 /src
parent618173c6c70f670ec8117e8ecc8ad20dd9b7f93a (diff)
downloadbuildstream-d5121cc10ecbc71478c06a6b0f3b90ecbc960602.tar.gz
_stream.py: Remove workspace_is_required()
This API was only used to issue a not very useful message in the CLI when removing a workspace the user happened to have invoked BuildStream from. The API also didn't really make any sense, being documented as: "Checks whether the workspace belonging to element_name is required to load the project" This in fact meant whether having that workspace open was required for BuildStream to be invoked, due to the metadata encoded into the workspace directory.
Diffstat (limited to 'src')
-rw-r--r--src/buildstream/_stream.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/buildstream/_stream.py b/src/buildstream/_stream.py
index dc91db6b7..44faf2bc7 100644
--- a/src/buildstream/_stream.py
+++ b/src/buildstream/_stream.py
@@ -956,20 +956,6 @@ class Stream:
return False
- # workspace_is_required()
- #
- # Checks whether the workspace belonging to element_name is required to
- # load the project
- #
- # Args:
- # element_name (str): The element whose workspace may be required
- #
- # Returns:
- # (bool): True if the workspace is required
- def workspace_is_required(self, element_name):
- invoked_elm = self._project.invoked_from_workspace_element()
- return invoked_elm == element_name
-
# workspace_list
#
# Serializes the workspaces and dumps them in YAML to stdout.