Commit 6e3e5bf5 authored by Tom Pollard's avatar Tom Pollard

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.
parent 68f5d92f
......@@ -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 = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment