summaryrefslogtreecommitdiff
path: root/nova/api/openstack/wsgi.py
diff options
context:
space:
mode:
authorTakashi NATSUME <natsume.takashi@lab.ntt.co.jp>2016-11-11 12:19:07 +0900
committerTakashi NATSUME <natsume.takashi@lab.ntt.co.jp>2016-11-17 23:32:22 +0000
commitb95b6d801843cc71c0f86c46c5702d6a263a053f (patch)
treec7cc9ebb0b1982fd409e8b4f275209d62df91792 /nova/api/openstack/wsgi.py
parentdbf0b2c8ae1334ee125f66aa6ed9ccb8303f42ca (diff)
downloadnova-b95b6d801843cc71c0f86c46c5702d6a263a053f.tar.gz
Remove unused code in nova/api/openstack/wsgi.py
The 'get_media_map' method hasn't been used since I8d37751624ca1d381e1098a3a6349922a4c5ef6a. TrivialFix Change-Id: I3d3e08fa2f305cecfe7e2f01791d39bc0f3ef868
Diffstat (limited to 'nova/api/openstack/wsgi.py')
-rw-r--r--nova/api/openstack/wsgi.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/nova/api/openstack/wsgi.py b/nova/api/openstack/wsgi.py
index 8c476824eb..f457ea9f05 100644
--- a/nova/api/openstack/wsgi.py
+++ b/nova/api/openstack/wsgi.py
@@ -41,11 +41,6 @@ _SUPPORTED_CONTENT_TYPES = (
'application/vnd.openstack.compute+json',
)
-_MEDIA_TYPE_MAP = {
- 'application/vnd.openstack.compute+json': 'json',
- 'application/json': 'json',
-}
-
# These are typically automatically created by routes as either defaults
# collection or member methods.
_ROUTES_METHODS = [
@@ -81,10 +76,6 @@ def get_supported_content_types():
return _SUPPORTED_CONTENT_TYPES
-def get_media_map():
- return dict(_MEDIA_TYPE_MAP.items())
-
-
# NOTE(rlrossit): This function allows a get on both a dict-like and an
# object-like object. cache_db_items() is used on both versioned objects and
# dicts, so the function can't be totally changed over to [] syntax, nor