diff options
author | Jürg Billeter <j@bitron.ch> | 2019-06-13 17:55:18 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-08-20 07:41:23 +0200 |
commit | e1204be7ece0b55536b9860643d901158769019c (patch) | |
tree | ee36e8d4622c0dd525cddd975dde565e3d7b68d2 /src/buildstream/_artifactcache.py | |
parent | 8a6fc3a4650e97950376efc9ce00a001cc614e95 (diff) | |
download | buildstream-e1204be7ece0b55536b9860643d901158769019c.tar.gz |
Remove support for pruning CAS cache
Diffstat (limited to 'src/buildstream/_artifactcache.py')
-rw-r--r-- | src/buildstream/_artifactcache.py | 16 |
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 |