summaryrefslogtreecommitdiff
path: root/src/buildstream/_artifactcache.py
diff options
context:
space:
mode:
authorTristan Maat <tristan.maat@codethink.co.uk>2019-08-19 12:31:48 +0100
committerTristan Maat <tristan.maat@codethink.co.uk>2019-09-06 14:32:21 +0100
commite28db2335208906490d759780d091c3709da131e (patch)
treeaefc4fe93f2f89327d5b27267b9ce5682002ec9e /src/buildstream/_artifactcache.py
parent412da4061d0d95513e3b4b13fc1c64a8c5d8cd21 (diff)
downloadbuildstream-e28db2335208906490d759780d091c3709da131e.tar.gz
Remove cache-specifc spec classes
This was almost entirely just historical code duplication.
Diffstat (limited to 'src/buildstream/_artifactcache.py')
-rw-r--r--src/buildstream/_artifactcache.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/buildstream/_artifactcache.py b/src/buildstream/_artifactcache.py
index 3357f986a..73047d376 100644
--- a/src/buildstream/_artifactcache.py
+++ b/src/buildstream/_artifactcache.py
@@ -25,22 +25,12 @@ from ._exceptions import ArtifactError, CASError, CASCacheError, CASRemoteError
from ._protos.buildstream.v2 import buildstream_pb2, buildstream_pb2_grpc, \
artifact_pb2, artifact_pb2_grpc
-from ._cas import CASRemoteSpec, CASRemote
+from ._cas import CASRemote
from .storage._casbaseddirectory import CasBasedDirectory
from ._artifact import Artifact
from . import utils
-# An ArtifactCacheSpec holds the user configuration for a single remote
-# artifact cache.
-#
-# Args:
-# url (str): Location of the remote artifact cache
-# push (bool): Whether we should attempt to push artifacts to this cache,
-# in addition to pulling from it.
-#
-class ArtifactCacheSpec(CASRemoteSpec):
- pass
# ArtifactRemote extends CASRemote to check during initialisation that there is
@@ -86,7 +76,6 @@ class ArtifactRemote(CASRemote):
#
class ArtifactCache(BaseCache):
- spec_class = ArtifactCacheSpec
spec_name = "artifact_cache_specs"
spec_error = ArtifactError
config_node_name = "artifacts"