From 5a6227c1b0566d2eab2b46b37eb53141449a22ba Mon Sep 17 00:00:00 2001 From: KIYOHIRO ADACHI Date: Wed, 26 Feb 2014 17:35:07 +0900 Subject: [PATCH] Remove unused variable o cinder/api/openstack/wsgi.py:_CONTENT_TYPE_MAP = { This variable was added in the following commit. commit c53d8e343e50d4cf7ea9a6a81258848c2d893bfb Author: Jenkins Date: Thu May 3 10:48:26 2012 -0700 Initial fork out of Nova. But there is no evidence that was used. Change-Id: I6af64126cf1747ded3369a6237a4cb6cfd250922 --- cinder/api/openstack/wsgi.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cinder/api/openstack/wsgi.py b/cinder/api/openstack/wsgi.py index b1138cdb6..c93a088af 100644 --- a/cinder/api/openstack/wsgi.py +++ b/cinder/api/openstack/wsgi.py @@ -37,14 +37,6 @@ XMLNS_ATOM = 'http://www.w3.org/2005/Atom' LOG = logging.getLogger(__name__) -# The vendor content types should serialize identically to the non-vendor -# content types. So to avoid littering the code with both options, we -# map the vendor to the other when looking up the type -_CONTENT_TYPE_MAP = { - 'application/vnd.openstack.volume+json': 'application/json', - 'application/vnd.openstack.volume+xml': 'application/xml', -} - SUPPORTED_CONTENT_TYPES = ( 'application/json', 'application/vnd.openstack.volume+json', -- 2.45.2