summaryrefslogtreecommitdiff
path: root/src/buildstream/_sourcecache.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/_sourcecache.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/_sourcecache.py')
-rw-r--r--src/buildstream/_sourcecache.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/buildstream/_sourcecache.py b/src/buildstream/_sourcecache.py
index 64498ba32..2a6a6e220 100644
--- a/src/buildstream/_sourcecache.py
+++ b/src/buildstream/_sourcecache.py
@@ -20,7 +20,7 @@
import os
import grpc
-from ._cas import CASRemote, CASRemoteSpec
+from ._cas import CASRemote
from .storage._casbaseddirectory import CasBasedDirectory
from ._basecache import BaseCache
from ._exceptions import CASError, CASRemoteError, SourceCacheError
@@ -29,16 +29,6 @@ from ._protos.buildstream.v2 import buildstream_pb2, buildstream_pb2_grpc, \
source_pb2, source_pb2_grpc
-# Holds configuration for a remote used for the source cache.
-#
-# Args:
-# url (str): Location of the remote source cache
-# push (bool): Whether we should attempt to push sources to this cache,
-# in addition to pulling from it.
-# instance-name (str): Name if any, of instance of server
-#
-class SourceCacheSpec(CASRemoteSpec):
- pass
class SourceRemote(CASRemote):
@@ -85,7 +75,6 @@ class SourceRemote(CASRemote):
#
class SourceCache(BaseCache):
- spec_class = SourceCacheSpec
spec_name = "source_cache_specs"
spec_error = SourceCacheError
config_node_name = "source-caches"