summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-09-08 11:48:20 -0400
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-09-08 11:48:20 -0400
commite368f29bfc0f1df7ca91dc023cfce69670b78a96 (patch)
treed8cdeb29bf14993106219ed61645b0d7ea2a26c0
parentd1d5873ff50750c092a762ef851ff6ae915c414f (diff)
downloadbuildstream-e368f29bfc0f1df7ca91dc023cfce69670b78a96.tar.gz
_artifactcache/artifactcache.py: Removed remove()
The remove() API is not used anywhere, except for previously being tested.
-rw-r--r--buildstream/_artifactcache/artifactcache.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/buildstream/_artifactcache/artifactcache.py b/buildstream/_artifactcache/artifactcache.py
index 4e2e5312f..0314b115d 100644
--- a/buildstream/_artifactcache/artifactcache.py
+++ b/buildstream/_artifactcache/artifactcache.py
@@ -155,22 +155,6 @@ class ArtifactCache():
return self.remote_contains_key(element, key)
- # remove():
- #
- # Removes the artifact for the specified Element from the local artifact
- # cache.
- #
- # Args:
- # element (Element): The Element to remove
- #
- def remove(self, element):
- key = element._get_cache_key()
- if not key:
- return
-
- ref = buildref(element, key)
- _ostree.remove(self.repo, ref)
-
# extract():
#
# Extract cached artifact for the specified Element if it hasn't