]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Remove unused method 'is_key_value_present()'
authorKIYOHIRO ADACHI <adachi@mxs.nes.nec.co.jp>
Fri, 10 Jan 2014 04:39:56 +0000 (13:39 +0900)
committerKIYOHIRO ADACHI <adachi@mxs.nes.nec.co.jp>
Tue, 21 Jan 2014 05:38:50 +0000 (14:38 +0900)
The following method is not used.
  is_key_value_present() in cinder/volume/volume_types.py

Change-Id: If1ecd22f2cfb758f0e9f7c6b730727559e9dcdf0

cinder/volume/volume_types.py

index 255622d5c9fb24ea7ba4d8128a883e1a63275666..3f4bb35269cede7a0a85a2651b3a06b34214a162 100644 (file)
@@ -133,20 +133,6 @@ def get_default_volume_type():
     return vol_type
 
 
-def is_key_value_present(volume_type_id, key, value, volume_type=None):
-    if volume_type_id is None:
-        return False
-
-    if volume_type is None:
-        volume_type = get_volume_type(context.get_admin_context(),
-                                      volume_type_id)
-    if (volume_type.get('extra_specs') is None or
-            volume_type['extra_specs'].get(key) != value):
-        return False
-    else:
-        return True
-
-
 def get_volume_type_extra_specs(volume_type_id, key=False):
     volume_type = get_volume_type(context.get_admin_context(),
                                   volume_type_id)