[gparted] Remove redundant lines from LVM2_PV_Info functions



commit 7c8156b7d2914b1bc02eda6debf2542357fef46c
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Sat Jul 7 11:27:56 2012 +0100

    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 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/LVM2_PV_Info.cc b/src/LVM2_PV_Info.cc
index 2485606..a9cf3cd 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<Glib::ustring> 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<Glib::ustring> 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 ) ;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]