summaryrefslogtreecommitdiff
path: root/src/buildstream/_artifactcache.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/_artifactcache.py')
-rw-r--r--src/buildstream/_artifactcache.py16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/buildstream/_artifactcache.py b/src/buildstream/_artifactcache.py
index 44cce3f4c..7e245fbfa 100644
--- a/src/buildstream/_artifactcache.py
+++ b/src/buildstream/_artifactcache.py
@@ -221,25 +221,13 @@ class ArtifactCache(BaseCache):
# Args:
# ref (artifact_name): The name of the artifact to remove (as
# generated by `Element.get_artifact_name`)
- # defer_prune (bool): Optionally declare whether pruning should
- # occur immediately after the ref is removed.
#
- # Returns:
- # (int): The amount of space recovered in the cache, in bytes
- #
- def remove(self, ref, *, defer_prune=False):
+ def remove(self, ref):
try:
- return self.cas.remove(ref, basedir=self.artifactdir, defer_prune=defer_prune)
+ self.cas.remove(ref, basedir=self.artifactdir)
except CASCacheError as e:
raise ArtifactError("{}".format(e)) from e
- # prune():
- #
- # Prune the artifact cache of unreachable refs
- #
- def prune(self):
- return self.cas.prune()
-
# diff():
#
# Return a list of files that have been added or modified between