From 827a12947bd8323fdfb7ec16233db963df965526 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Mon, 16 Apr 2018 21:45:39 +0900 Subject: _pipeline.py: Stop printing warning when a build plan does not use some existing workspaces Fixes issue #360 --- buildstream/_pipeline.py | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'buildstream/_pipeline.py') diff --git a/buildstream/_pipeline.py b/buildstream/_pipeline.py index e99b4a540..80b0e01ac 100644 --- a/buildstream/_pipeline.py +++ b/buildstream/_pipeline.py @@ -303,10 +303,6 @@ class Pipeline(): # which are required to build the target. # def build(self, scheduler, *, build_all=False): - unused_workspaces = self._collect_unused_workspaces() - if unused_workspaces: - self._message(MessageType.WARN, "Unused workspaces", - detail="\n".join([el for el in unused_workspaces])) if build_all: plan = self.dependencies(Scope.ALL) @@ -634,19 +630,6 @@ class Pipeline(): for element in self.dependencies(Scope.ALL): element._preflight() - # _collect_unused_workspaces() - # - # Collect a list of any workspaces which are unused by the pipeline - # - def _collect_unused_workspaces(self): - unused_workspaces = [] - for element_name, _ in self.project.workspaces.list(): - for target in self.targets: - element = target.search(Scope.ALL, element_name) - if element is None: - unused_workspaces.append(element_name) - return unused_workspaces - # _initialize_remote_caches() # # Initialize remote artifact caches, checking what -- cgit v1.2.1