From cdcdc32cc1d091ad6b791e681bd37b0a018cc047 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Tue, 27 Feb 2018 06:11:31 +0100 Subject: _artifactcache/tarcache.py: Remove unused remove() method --- buildstream/_artifactcache/tarcache.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/buildstream/_artifactcache/tarcache.py b/buildstream/_artifactcache/tarcache.py index 84b446cd2..fa42506ef 100644 --- a/buildstream/_artifactcache/tarcache.py +++ b/buildstream/_artifactcache/tarcache.py @@ -262,20 +262,6 @@ class TarCache(ArtifactCache): path = os.path.join(self.tardir, tarpath(element, key)) return os.path.isfile(path) - # remove() - # - # Implements artifactcache.remove(). - # - # FIXME: Untested... - # - def remove(self, element): - key = element._get_cache_key() - if not key: - return - - path = (os.path.join(self.tardir, tarpath(element, key))) - shutil.rmtree(path) - # commit() # # Implements artifactcache.commit(). -- cgit v1.2.1