From: KIYOHIRO ADACHI Date: Fri, 10 Jan 2014 04:39:56 +0000 (+0900) Subject: Remove unused method 'is_key_value_present()' X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=604e70e7524bb854347edfcc079d30d6c68f5f79;p=openstack-build%2Fcinder-build.git Remove unused method 'is_key_value_present()' The following method is not used. is_key_value_present() in cinder/volume/volume_types.py Change-Id: If1ecd22f2cfb758f0e9f7c6b730727559e9dcdf0 --- diff --git a/cinder/volume/volume_types.py b/cinder/volume/volume_types.py index 255622d5c..3f4bb3526 100644 --- a/cinder/volume/volume_types.py +++ b/cinder/volume/volume_types.py @@ -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)