diff options
author | Angelos Evripiotis <jevripiotis@bloomberg.net> | 2019-07-05 15:11:47 +0100 |
---|---|---|
committer | Angelos Evripiotis <angelos.evripiotis@gmail.com> | 2019-07-09 20:48:08 +0000 |
commit | 5bc2b0731b8f87e50ad0db50706494e53014dbe1 (patch) | |
tree | ec7e33b51219ca98715ed2d00b7f98d853071cd5 | |
parent | e274b648ccbf0149b46ffdee51316bdd4fac7a2e (diff) | |
download | buildstream-5bc2b0731b8f87e50ad0db50706494e53014dbe1.tar.gz |
cascache: rm unused link_ref(), available_space
-rw-r--r-- | src/buildstream/_cas/cascache.py | 15 |
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 # |