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-27 15:33:36 +0000
commit7f2f62eb21114dd65d3dca801984ddf29934bde5 (patch)
tree31dc08cea93eadcfc9cfe6b3022fa6f06d193654
parent95d8244f366b83966315095176c6be4d7b886fbc (diff)
downloadbuildstream-7f2f62eb21114dd65d3dca801984ddf29934bde5.tar.gz
artifactcache.py: Remove unused verify_digest_pushed
-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.