summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim MacArthur <jim.macarthur@codethink.co.uk>2018-11-22 17:32:48 +0000
committerJim MacArthur <jim.macarthur@codethink.co.uk>2018-11-26 11:53:34 +0000
commit26c3e97f40129c0b86a15e9a767c50ebccded707 (patch)
tree31a6fc4cdd3c1688f911268d429bcb72ec5bd7ba
parent392c2803dcad706abaaae7132033866c7eaf9be3 (diff)
downloadbuildstream-jmac/remote_execution_split.tar.gz
artifactcache.py: Remove unused verify_digest_pushedjmac/remote_execution_split
-rw-r--r--buildstream/_artifactcache/artifactcache.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/buildstream/_artifactcache/artifactcache.py b/buildstream/_artifactcache/artifactcache.py
index a156dc3bc..7771851ae 100644
--- a/buildstream/_artifactcache/artifactcache.py
+++ b/buildstream/_artifactcache/artifactcache.py
@@ -751,34 +751,6 @@ class ArtifactCache():
return message_digest
- # verify_digest_pushed():
- #
- # Check whether the object is already on the server in which case
- # there is no need to upload it.
- #
- # Args:
- # project (Project): The current project
- # digest (Digest): The object digest.
- #
- def verify_digest_pushed(self, project, digest):
-
- if self._has_push_remotes:
- push_remotes = [r for r in self._remotes[project] if r.spec.push]
- else:
- push_remotes = []
-
- if not push_remotes:
- raise ArtifactError("verify_digest_pushed was called, but no remote artifact " +
- "servers are configured as push remotes.")
-
- pushed = False
-
- for remote in push_remotes:
- if self.cas.verify_digest_on_remote(remote, digest):
- pushed = True
-
- return pushed
-
# link_key():
#
# Add a key for an existing artifact.