From 169fedad2985d0ba56358ad3e67be09eb300e5c8 Mon Sep 17 00:00:00 2001 From: Alex Meade Date: Mon, 17 Mar 2014 15:16:09 -0400 Subject: [PATCH] Remove unused method from NetApp iscsi driver This removes _get_qos_type() from the NetApp iscsi code as it is never used. Change-Id: I903245b5c018bce80bdc0b8edf9ab7241e475fa4 --- cinder/volume/drivers/netapp/iscsi.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/cinder/volume/drivers/netapp/iscsi.py b/cinder/volume/drivers/netapp/iscsi.py index 6961b0a9a..f5d8e32d3 100644 --- a/cinder/volume/drivers/netapp/iscsi.py +++ b/cinder/volume/drivers/netapp/iscsi.py @@ -47,7 +47,6 @@ from cinder.volume.drivers.netapp.utils import get_volume_extra_specs from cinder.volume.drivers.netapp.utils import provide_ems from cinder.volume.drivers.netapp.utils import set_safe_attr from cinder.volume.drivers.netapp.utils import validate_instantiation -from cinder.volume import volume_types LOG = logging.getLogger(__name__) @@ -496,16 +495,6 @@ class NetAppDirectISCSIDriver(driver.ISCSIDriver): 'initiator': initiator}) self.client.invoke_successfully(igroup_add, True) - def _get_qos_type(self, volume): - """Get the storage service type for a volume.""" - type_id = volume['volume_type_id'] - if not type_id: - return None - volume_type = volume_types.get_volume_type(None, type_id) - if not volume_type: - return None - return volume_type['name'] - def _add_lun_to_table(self, lun): """Adds LUN to cache table.""" if not isinstance(lun, NetAppLun): -- 2.45.2