Skip to content

Commit

Permalink
cascache.py: remove _cache_usage_monitor_forbidden
Browse files Browse the repository at this point in the history
This is a relic from the job pickling era
  • Loading branch information
abderrahim committed Oct 12, 2024
1 parent 0edf2dc commit 5f6aa98
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/buildstream/_cas/cascache.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def __init__(self, path, *, casd, remote_cache=False):
os.makedirs(self.tmpdir, exist_ok=True)

self._cache_usage_monitor = None
self._cache_usage_monitor_forbidden = False

self._remote_cache = remote_cache

Expand Down Expand Up @@ -703,7 +702,6 @@ def _send_directory(self, remote, digest):
# (CASCacheUsage): The current status
#
def get_cache_usage(self):
assert not self._cache_usage_monitor_forbidden
return self._cache_usage_monitor.get_cache_usage()

# get_casd()
Expand Down

0 comments on commit 5f6aa98

Please sign in to comment.