Remove unused clear_mountpoints parameter from add_mountpoint*()
The clear_mountpoints parameter has never been used since add_mountpoint*() were first added [1][2]. clear_mountpoints() method [3] is available to provide this functionality and used. Therefore removed unused parameter and code. [1] add_mountpoints() added 2006-03-159532c3cad1
Made Partition::mountpoints private [2] add_mountpoint() added 2011-12-16 208083f11d84dbd4f186271a3cdbf5170db259f8b8 Display LVM2 VGNAME as the PV's mount point (#160787) [3] clear_mountpoint() added 2006-03-19ad9f2126e7
fixed issues with copying (see also #335004) cleanups + added FIXME added
This commit is contained in:
parent
5857b46c5d
commit
0f76b8f8ff
|
@ -106,8 +106,8 @@ public:
|
||||||
Byte_Value get_byte_length() const ;
|
Byte_Value get_byte_length() const ;
|
||||||
Sector get_sector_length() const ;
|
Sector get_sector_length() const ;
|
||||||
Glib::ustring get_path() const ;
|
Glib::ustring get_path() const ;
|
||||||
void add_mountpoint( const Glib::ustring & mountpoint, bool clear_mountpoints = false ) ;
|
void add_mountpoint( const Glib::ustring & mountpoint );
|
||||||
void add_mountpoints( const std::vector<Glib::ustring> & mountpoints, bool clear_mountpoints = false ) ;
|
void add_mountpoints( const std::vector<Glib::ustring> & mountpoints );
|
||||||
Glib::ustring get_mountpoint() const ;
|
Glib::ustring get_mountpoint() const ;
|
||||||
void clear_mountpoints() ;
|
void clear_mountpoints() ;
|
||||||
std::vector<Glib::ustring> get_mountpoints() const ;
|
std::vector<Glib::ustring> get_mountpoints() const ;
|
||||||
|
|
|
@ -322,19 +322,13 @@ void Partition::get_usage_triple_helper( Sector stot, Sector s1, Sector s2, Sect
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Partition::add_mountpoint( const Glib::ustring & mountpoint, bool clear_mountpoints )
|
void Partition::add_mountpoint( const Glib::ustring & mountpoint )
|
||||||
{
|
{
|
||||||
if ( clear_mountpoints )
|
|
||||||
this ->mountpoints .clear() ;
|
|
||||||
|
|
||||||
this ->mountpoints .push_back( mountpoint ) ;
|
this ->mountpoints .push_back( mountpoint ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Partition::add_mountpoints( const std::vector<Glib::ustring> & mountpoints, bool clear_mountpoints )
|
void Partition::add_mountpoints( const std::vector<Glib::ustring> & mountpoints )
|
||||||
{
|
{
|
||||||
if ( clear_mountpoints )
|
|
||||||
this ->mountpoints .clear() ;
|
|
||||||
|
|
||||||
this ->mountpoints .insert( this ->mountpoints .end(), mountpoints .begin(), mountpoints .end() ) ;
|
this ->mountpoints .insert( this ->mountpoints .end(), mountpoints .begin(), mountpoints .end() ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue