Remove unused argument v3mode

Since I17e08b09d0cae0c84362691de6b660477174344f , the argument has
been unused. So this patch removes it for the cleanup.

Change-Id: Ic6ed32fa487e0d4d8fe0d3ba0d160c5947afe4b5
This commit is contained in:
Ken'ichi Ohmichi
2016-03-22 15:42:16 -07:00
parent ea13f3a33b
commit d2f67e8efe
+2 -7
View File
@@ -345,12 +345,10 @@ class APIRouterV21(base_wsgi.Router):
def api_extension_namespace():
return 'nova.api.v21.extensions'
def __init__(self, init_only=None, v3mode=False):
def __init__(self, init_only=None):
# TODO(cyeoh): bp v3-api-extension-framework. Currently load
# all extensions but eventually should be able to exclude
# based on a config file
# TODO(oomichi): We can remove v3mode argument after moving all v3 APIs
# to v2.1.
def _check_load_extension(ext):
if (self.init_only is None or ext.obj.alias in
self.init_only) and isinstance(ext.obj,
@@ -398,10 +396,7 @@ class APIRouterV21(base_wsgi.Router):
invoke_on_load=True,
invoke_kwds={"extension_info": self.loaded_extension_info})
if v3mode:
mapper = PlainMapper()
else:
mapper = ProjectMapper()
mapper = ProjectMapper()
self.resources = {}