diff options
author | Tristan van Berkom <tristan@codethink.co.uk> | 2020-12-22 16:33:30 +0900 |
---|---|---|
committer | Tristan van Berkom <tristan@codethink.co.uk> | 2020-12-23 15:32:04 +0900 |
commit | 2c1bb091cdad22c9d41ae091a5c46e543f82009e (patch) | |
tree | c7c24560e3aa610a39d723a1ae3444342e70a1e5 | |
parent | 8fbfc4b742c88669d4b010f5195612bcd869589f (diff) | |
download | buildstream-2c1bb091cdad22c9d41ae091a5c46e543f82009e.tar.gz |
_pipeline.py: Remove resolve_elements().
-rw-r--r-- | src/buildstream/_pipeline.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/buildstream/_pipeline.py b/src/buildstream/_pipeline.py index cab195895..1306c1c3c 100644 --- a/src/buildstream/_pipeline.py +++ b/src/buildstream/_pipeline.py @@ -43,36 +43,6 @@ class Pipeline: self._project = project # The toplevel project self._artifacts = artifacts # The artifact cache - # resolve_elements() - # - # Resolve element state and cache keys. - # - # Args: - # targets (list of Element): The list of toplevel element targets - # - def resolve_elements(self, targets): - with self._context.messenger.simple_task("Resolving cached state", silent_nested=True) as task: - # We need to go through the project to access the loader - if task: - task.set_maximum_progress(self._project.loader.loaded) - - # XXX: Now that Element._update_state() can trigger recursive update_state calls - # it is possible that we could get a RecursionError. However, this is unlikely - # to happen, even for large projects (tested with the Debian stack). Although, - # if it does become a problem we may have to set the recursion limit to a - # greater value. - for element in self.dependencies(targets, _Scope.ALL): - # Determine initial element state. - element._initialize_state() - - # We may already have Elements which are cached and have their runtimes - # cached, if this is the case, we should immediately notify their reverse - # dependencies. - element._update_ready_for_runtime_and_cached() - - if task: - task.add_current_progress() - # dependencies() # # Generator function to iterate over elements and optionally |