From 7c8156b7d2914b1bc02eda6debf2542357fef46c Mon Sep 17 00:00:00 2001 From: Mike Fleetwood Date: Sat, 7 Jul 2012 11:27:56 +0100 Subject: [PATCH] Remove redundant lines from LVM2_PV_Info functions Splitting of each cache string on comma "," is performed in get_pv_attr_by_row() and not needed in the caller functions. --- src/LVM2_PV_Info.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/LVM2_PV_Info.cc b/src/LVM2_PV_Info.cc index 2485606e..a9cf3cd8 100644 --- a/src/LVM2_PV_Info.cc +++ b/src/LVM2_PV_Info.cc @@ -119,8 +119,6 @@ bool LVM2_PV_Info::has_active_lvs( const Glib::ustring & path ) for ( unsigned int i = 0 ; i < lvm2_pv_cache .size() ; i ++ ) { - std::vector pv_attrs ; - Utils::split( lvm2_pv_cache [i], pv_attrs, "," ) ; if ( vgname == get_pv_attr_by_row( i, PVATTR_VG_NAME ) ) { Glib::ustring lv_bits = get_pv_attr_by_row( i, PVATTR_LV_BITS ) ; @@ -142,8 +140,6 @@ bool LVM2_PV_Info::is_vg_exported( const Glib::ustring & vgname ) for ( unsigned int i = 0 ; i < lvm2_pv_cache .size() ; i ++ ) { - std::vector pv_attrs ; - Utils::split( lvm2_pv_cache [i], pv_attrs, "," ) ; if ( vgname == get_pv_attr_by_row( i, PVATTR_VG_NAME ) ) { Glib::ustring vg_bits = get_pv_attr_by_row( i, PVATTR_VG_BITS ) ;