From 604e70e7524bb854347edfcc079d30d6c68f5f79 Mon Sep 17 00:00:00 2001 From: KIYOHIRO ADACHI Date: Fri, 10 Jan 2014 13:39:56 +0900 Subject: [PATCH] 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 --- cinder/volume/volume_types.py | 14 -------------- 1 file changed, 14 deletions(-) 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) -- 2.45.2