Skip to content
Snippets Groups Projects
Commit 4c0236b2 authored by Jürg Billeter's avatar Jürg Billeter
Browse files

_artifactcache/cascache.py: Remove unused enable_push parameter

parent 0610256e
No related branches found
No related tags found
Loading
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment