summaryrefslogtreecommitdiff
path: root/glance_store
diff options
context:
space:
mode:
Diffstat (limited to 'glance_store')
-rw-r--r--glance_store/_drivers/swift/store.py6
-rw-r--r--glance_store/backend.py5
-rw-r--r--glance_store/driver.py7
3 files changed, 0 insertions, 18 deletions
diff --git a/glance_store/_drivers/swift/store.py b/glance_store/_drivers/swift/store.py
index 885368c..2040982 100644
--- a/glance_store/_drivers/swift/store.py
+++ b/glance_store/_drivers/swift/store.py
@@ -398,12 +398,6 @@ class BaseStore(driver.Store):
return (resp_headers, resp_body)
- def validate_location(self, uri):
- pieces = urlparse.urlparse(uri)
- if pieces.scheme in ['swift+config']:
- reason = (_("Location credentials are invalid"))
- raise exceptions.BadStoreUri(message=reason)
-
def get(self, location, connection=None,
offset=0, chunk_size=None, context=None):
location = location.store_location
diff --git a/glance_store/backend.py b/glance_store/backend.py
index d84a720..8cb315b 100644
--- a/glance_store/backend.py
+++ b/glance_store/backend.py
@@ -375,8 +375,3 @@ def set_acls(location_uri, public=False, read_tenants=[],
context=context)
except NotImplementedError:
LOG.debug(_("Skipping store.set_acls... not implemented."))
-
-
-def validate_location(uri, context=None):
- store = get_store_from_uri(uri)
- store.validate_location(uri)
diff --git a/glance_store/driver.py b/glance_store/driver.py
index 0bdf36e..d1d28f8 100644
--- a/glance_store/driver.py
+++ b/glance_store/driver.py
@@ -96,13 +96,6 @@ class Store(object):
"""
# NOTE(flaper87): This should probably go away
- def validate_location(self, location):
- """
- Takes a location and validates it for the presence
- of any account references
- """
- pass
-
def get(self, location, offset=0, chunk_size=None, context=None):
"""
Takes a `glance_store.location.Location` object that indicates