diff options
author | Tom Pollard <tom.pollard@codethink.co.uk> | 2019-04-12 10:50:33 +0100 |
---|---|---|
committer | Tom Pollard <tom.pollard@codethink.co.uk> | 2019-04-17 16:47:27 +0100 |
commit | 6e3e5bf59887712f845b317a4977dd206c7888c4 (patch) | |
tree | 0a8dd8d243943727b879e6302f2b9c26505135db | |
parent | 68f5d92fb1f5a37800c11aa74ebd56f7f2a43ca5 (diff) | |
download | buildstream-6e3e5bf59887712f845b317a4977dd206c7888c4.tar.gz |
element.py: Remove redundant fully private __cached_success()
This was being accessed via a local private method that wasn't
augmenting the output as such it can be moved to match
_cached_failure.
-rw-r--r-- | buildstream/element.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/buildstream/element.py b/buildstream/element.py index 17cc9548c..7a573c7c9 100644 --- a/buildstream/element.py +++ b/buildstream/element.py @@ -1080,7 +1080,11 @@ class Element(Plugin): # the artifact cache and the element assembled successfully # def _cached_success(self): - return self.__cached_success() + if not self._cached(): + return False + + success, _, _ = self._get_build_result() + return success # _cached_failure(): # @@ -2896,13 +2900,6 @@ class Element(Plugin): self.__build_result = self.__artifact.load_build_result() - def __cached_success(self): - if not self._cached(): - return False - - success, _, _ = self._get_build_result() - return success - def __get_cache_keys_for_commit(self): keys = [] |