diff options
author | Jürg Billeter <j@bitron.ch> | 2019-06-12 17:58:45 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-08-20 07:41:23 +0200 |
commit | 54deb4be42bcbdefc52cbdd4da59de4d3305c700 (patch) | |
tree | f60d0cc3210f87e598b6f5772f8f2350c1b7f4a5 | |
parent | 6690df63a7a41aaaa80bde85f16d283ff59a4f8f (diff) | |
download | buildstream-54deb4be42bcbdefc52cbdd4da59de4d3305c700.tar.gz |
cascache.py: Remove unused method clean_up_refs_until()
-rw-r--r-- | src/buildstream/_cas/cascache.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/buildstream/_cas/cascache.py b/src/buildstream/_cas/cascache.py index fa55f5d94..40023ff01 100644 --- a/src/buildstream/_cas/cascache.py +++ b/src/buildstream/_cas/cascache.py @@ -440,16 +440,6 @@ class CASCache(): except FileNotFoundError as e: raise CASCacheError("Attempt to access unavailable ref: {}".format(e)) from e - def clean_up_refs_until(self, time): - ref_heads = os.path.join(self.casdir, 'refs', 'heads') - - for root, _, files in os.walk(ref_heads): - for filename in files: - ref_path = os.path.join(root, filename) - # Obtain the mtime (the time a file was last modified) - if os.path.getmtime(ref_path) < time: - os.unlink(ref_path) - # remove(): # # Removes the given symbolic ref from the repo. |