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.
This commit is contained in:
Mike Fleetwood 2012-07-07 11:27:56 +01:00 committed by Curtis Gedak
parent fae040c63e
commit 7c8156b7d2
1 changed files with 0 additions and 4 deletions

View File

@ -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 ++ ) for ( unsigned int i = 0 ; i < lvm2_pv_cache .size() ; i ++ )
{ {
std::vector<Glib::ustring> pv_attrs ;
Utils::split( lvm2_pv_cache [i], pv_attrs, "," ) ;
if ( vgname == get_pv_attr_by_row( i, PVATTR_VG_NAME ) ) if ( vgname == get_pv_attr_by_row( i, PVATTR_VG_NAME ) )
{ {
Glib::ustring lv_bits = get_pv_attr_by_row( i, PVATTR_LV_BITS ) ; 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 ++ ) for ( unsigned int i = 0 ; i < lvm2_pv_cache .size() ; i ++ )
{ {
std::vector<Glib::ustring> pv_attrs ;
Utils::split( lvm2_pv_cache [i], pv_attrs, "," ) ;
if ( vgname == get_pv_attr_by_row( i, PVATTR_VG_NAME ) ) if ( vgname == get_pv_attr_by_row( i, PVATTR_VG_NAME ) )
{ {
Glib::ustring vg_bits = get_pv_attr_by_row( i, PVATTR_VG_BITS ) ; Glib::ustring vg_bits = get_pv_attr_by_row( i, PVATTR_VG_BITS ) ;