diff options
author | Jürg Billeter <j@bitron.ch> | 2018-09-26 09:44:31 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2018-09-27 10:18:03 +0100 |
commit | f08e5eae17d4b11f84c6a72640145dcb84fa02eb (patch) | |
tree | 9efce3c58a9ab1ed663c21bf85b99f3b4b7eb627 /buildstream | |
parent | 966af3d254ba87df6047c89441840558689e9e29 (diff) | |
download | buildstream-f08e5eae17d4b11f84c6a72640145dcb84fa02eb.tar.gz |
_artifactcache/cascache.py: Remove unused enable_push parameter
Diffstat (limited to 'buildstream')
-rw-r--r-- | buildstream/_artifactcache/cascache.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/buildstream/_artifactcache/cascache.py b/buildstream/_artifactcache/cascache.py index 56c70ba9b..137bcbc5a 100644 --- a/buildstream/_artifactcache/cascache.py +++ b/buildstream/_artifactcache/cascache.py @@ -54,7 +54,6 @@ _MAX_PAYLOAD_BYTES = 1024 * 1024 # # Args: # context (Context): The BuildStream context -# enable_push (bool): Whether pushing is allowed by the platform # # Pushing is explicitly disabled by the platform in some cases, # like when we are falling back to functioning without using @@ -62,7 +61,7 @@ _MAX_PAYLOAD_BYTES = 1024 * 1024 # class CASCache(ArtifactCache): - def __init__(self, context, *, enable_push=True): + def __init__(self, context): super().__init__(context) self.casdir = os.path.join(context.artifactdir, 'cas') @@ -71,8 +70,6 @@ class CASCache(ArtifactCache): self._calculate_cache_quota() - self._enable_push = enable_push - # Per-project list of _CASRemote instances. self._remotes = {} @@ -214,7 +211,7 @@ class CASCache(ArtifactCache): return bool(remotes_for_project) def has_push_remotes(self, *, element=None): - if not self._has_push_remotes or not self._enable_push: + if not self._has_push_remotes: # No project has push remotes return False elif element is None: |