]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Remove unused variable
authorKIYOHIRO ADACHI <adachi@mxs.nes.nec.co.jp>
Wed, 26 Feb 2014 08:35:07 +0000 (17:35 +0900)
committerKIYOHIRO ADACHI <adachi@mxs.nes.nec.co.jp>
Wed, 26 Feb 2014 08:35:07 +0000 (17:35 +0900)
o cinder/api/openstack/wsgi.py:_CONTENT_TYPE_MAP = {

  This variable was added in the following commit.

    commit c53d8e343e50d4cf7ea9a6a81258848c2d893bfb
    Author: Jenkins <jenkins@review.openstack.org>
    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

index b1138cdb60c9be974cfa00be86f0f0f9b71aeb01..c93a088af06375947122bdabe8ba27caa9bc0df6 100644 (file)
@@ -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',