From 095ce5a504f024c78991a396d25598d999bac017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Thu, 19 Apr 2018 08:26:42 +0200 Subject: _artifactcache/artifactcache.py: Remove unused methods --- buildstream/_artifactcache/artifactcache.py | 35 ----------------------------- 1 file changed, 35 deletions(-) diff --git a/buildstream/_artifactcache/artifactcache.py b/buildstream/_artifactcache/artifactcache.py index 17038105d..9cc281524 100644 --- a/buildstream/_artifactcache/artifactcache.py +++ b/buildstream/_artifactcache/artifactcache.py @@ -274,41 +274,6 @@ class ArtifactCache(): def has_push_remotes(self, *, element=None): return False - # remote_contains(): - # - # Check whether the artifact for the specified Element is already available - # in any remote artifact cache. - # - # Args: - # element (Element): The Element to check - # key (str): The cache key to use - # - # Returns: True if the artifact is in a cache, False otherwise - # - def remote_contains(self, element, key): - return False - - # push_needed(): - # - # Check whether an artifact for the specified Element needs to be pushed to - # any of the configured push remotes. The policy is to push every artifact - # we build to every configured push remote, so this should only return False - # if all of the configured push remotes already contain the given artifact. - # - # This function checks for presence of the artifact only using its strong - # key. The presence of the weak key in a cache does not necessarily indicate - # that this particular artifact is present, only that there is a - # partially-compatible version available. - # - # Args: - # element (Element): The Element to check - # key (str): The cache key to use - # - # Returns: False if all the push remotes have the artifact, True otherwise - # - def push_needed(self, element, key): - return False - # push(): # # Push committed artifact to remote repository. -- cgit v1.2.1