[yast-commit] r56947 - in /trunk/storage/libstorage/src: Volume.cc Volume.h
Author: aschnell Date: Thu Apr 23 17:29:01 2009 New Revision: 56947 URL: http://svn.opensuse.org/viewcvs/yast?rev=56947&view=rev Log: - removed unused function Modified: trunk/storage/libstorage/src/Volume.cc trunk/storage/libstorage/src/Volume.h Modified: trunk/storage/libstorage/src/Volume.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/Volume.cc?rev=56947&r1=56946&r2=56947&view=diff ============================================================================== --- trunk/storage/libstorage/src/Volume.cc (original) +++ trunk/storage/libstorage/src/Volume.cc Thu Apr 23 17:29:01 2009 @@ -1059,24 +1059,6 @@ return( txt ); } -void Volume::rename( const string& newName ) - { - y2mil("rename old:" << nm << " new:" << newName); - string::size_type pos; - if( (pos=dev.rfind( nm ))!=string::npos ) - { - dev.replace( pos, nm.size(), newName ); - } - for( list<string>::iterator i=alt_names.begin(); i!=alt_names.end(); ++i ) - { - if( (pos=i->rfind( nm ))!=string::npos ) - { - i->replace( pos, nm.size(), newName ); - } - } - nm = newName; - } - int Volume::checkDevice() const { Modified: trunk/storage/libstorage/src/Volume.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/Volume.h?rev=56947&r1=56946&r2=56947&view=diff ============================================================================== --- trunk/storage/libstorage/src/Volume.h (original) +++ trunk/storage/libstorage/src/Volume.h Thu Apr 23 17:29:01 2009 @@ -64,7 +64,6 @@ virtual int setFormat( bool format=true, storage::FsType fs=storage::REISERFS ); void formattingDone() { format=false; detected_fs=fs; } bool getFormat() const { return format; } - void rename( const string& newName ); int changeFstabOptions( const string& options ); int changeMountBy( storage::MountByType mby ); virtual int changeMount( const string& m ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
aschnell@svn.opensuse.org