Remove unused versions pipeline from PasteDeploy config

Since the version negotiation middleware was introduced, versions
pipeline app in the config is unused. Consequently, the versions
app factory is unused too.

Change-Id: I2d50432de215e51c1e52f8d68eaa0820e9b5bd0b
This commit is contained in:
Mark McLoughlin 2011-11-08 21:34:01 +00:00
parent b82998684a
commit 2c66c6972d
3 changed files with 0 additions and 21 deletions

View File

@ -203,12 +203,6 @@ pipeline = versionnegotiation context apiv1app
# NOTE: use the following pipeline for keystone auth (with caching)
# pipeline = versionnegotiation authtoken auth-context cachemanage apiv1app
[pipeline:versions]
pipeline = versionsapp
[app:versionsapp]
paste.app_factory = glance.api.versions:app_factory
[app:apiv1app]
paste.app_factory = glance.api.v1:app_factory

View File

@ -24,8 +24,6 @@ import json
import webob.dec
from glance.common import wsgi
class Controller(object):
@ -67,10 +65,3 @@ class Controller(object):
def get_href(self):
return "http://%s:%s/v1/" % (self.options['bind_host'],
self.options['bind_port'])
def app_factory(global_conf, **local_conf):
"""paste.deploy app factory for creating Glance API versions apps"""
conf = global_conf.copy()
conf.update(local_conf)
return Controller(conf)

View File

@ -216,12 +216,6 @@ image_cache_driver = %(image_cache_driver)s
[pipeline:glance-api]
pipeline = versionnegotiation context %(cache_pipeline)s apiv1app
[pipeline:versions]
pipeline = versionsapp
[app:versionsapp]
paste.app_factory = glance.api.versions:app_factory
[app:apiv1app]
paste.app_factory = glance.api.v1:app_factory