summaryrefslogtreecommitdiff
path: root/src/buildstream/element.py
diff options
context:
space:
mode:
authorTristan van Berkom <tristan@codethink.co.uk>2020-12-02 19:25:10 +0900
committerTristan van Berkom <tristan@codethink.co.uk>2020-12-07 17:53:03 +0900
commit5352d7bacb4f3f59c315a35e990d57fd3d52466d (patch)
tree3455a2c0541108e8245d10020be7474edb966935 /src/buildstream/element.py
parent85bc237c684310a69fd3d05bb0124f7e100b5216 (diff)
downloadbuildstream-5352d7bacb4f3f59c315a35e990d57fd3d52466d.tar.gz
_stream.py: Centralize application state cleanup
Instead of delegating this job to a Project instance, implement the application state cleanup directly on the Stream object. This commit also: * Removes Project.cleanup() * Reword incorrect API documentation for Element._reset_load_state()
Diffstat (limited to 'src/buildstream/element.py')
-rw-r--r--src/buildstream/element.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py
index efec5e714..3ac201d66 100644
--- a/src/buildstream/element.py
+++ b/src/buildstream/element.py
@@ -1194,8 +1194,7 @@ class Element(Plugin):
# _reset_load_state()
#
- # This is called by Pipeline.cleanup() and is used to
- # reset the loader state between multiple sessions.
+ # This is used to reset the loader state across multiple load sessions.
#
@classmethod
def _reset_load_state(cls):