summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos Evripiotis <jevripiotis@bloomberg.net>2019-07-05 15:11:47 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-09 16:21:08 +0000
commit8a36ada849339b05716a1946b4868ace212b13fa (patch)
tree5509b5aa40d6c591c0f3558438f222b8a61e26c6
parent1e11d190562e641d10e2e435a8411c802eaedc81 (diff)
downloadbuildstream-8a36ada849339b05716a1946b4868ace212b13fa.tar.gz
cascache: rm unused link_ref(), available_space
-rw-r--r--src/buildstream/_cas/cascache.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/buildstream/_cas/cascache.py b/src/buildstream/_cas/cascache.py
index 771e31208..49a5e8837 100644
--- a/src/buildstream/_cas/cascache.py
+++ b/src/buildstream/_cas/cascache.py
@@ -272,19 +272,6 @@ class CASCache():
return None
- # link_ref():
- #
- # Add an alias for an existing ref.
- #
- # Args:
- # oldref (str): An existing ref
- # newref (str): A new ref for the same directory
- #
- def link_ref(self, oldref, newref):
- tree = self.resolve_ref(oldref)
-
- self.set_ref(newref, tree)
-
# push():
#
# Push committed refs to remote repository.
@@ -1050,7 +1037,6 @@ class CASQuota:
self._cache_quota_original = None # The cache quota as specified by the user, in bytes
self._cache_quota_headroom = None # The headroom in bytes before reaching the quota or full disk
self._cache_lower_threshold = None # The target cache size for a cleanup
- self.available_space = None
self._message = context.messenger.message
@@ -1225,7 +1211,6 @@ class CASQuota:
total_size, available_space = self._get_cache_volume_size()
cache_size = self.get_cache_size()
- self.available_space = available_space
# Ensure system has enough storage for the cache_quota
#