Author: aschnell Date: Tue Jul 22 13:52:49 2008 New Revision: 49325 URL: http://svn.opensuse.org/viewcvs/yast?rev=49325&view=rev Log: - removed some obsolete functions Modified: trunk/storage/libstorage/src/AppUtil.cc trunk/storage/libstorage/src/AppUtil.h Modified: trunk/storage/libstorage/src/AppUtil.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/AppUtil.cc?rev=49325&r1=49324&r2=49325&view=diff ============================================================================== --- trunk/storage/libstorage/src/AppUtil.cc (original) +++ trunk/storage/libstorage/src/AppUtil.cc Tue Jul 22 13:52:49 2008 @@ -424,33 +424,6 @@ select(0, NULL, NULL, NULL, &Timeout_ri); } -void removeSurrounding(char Delim_ci, string& Text_Cr) -{ - if (Text_Cr.length() > 0 && Text_Cr[0] == Delim_ci) - Text_Cr.erase(0, 1); - if (Text_Cr.length() > 0 && Text_Cr[Text_Cr.length() - 1] == Delim_ci) - Text_Cr.erase(Text_Cr.length() - 1); -} - -int -compareGt(string Lhs_Cv, string Rhs_Cv) -{ - return Lhs_Cv > Rhs_Cv; -} - -bool runningFromSystem() - { - static bool FirstCall_bs = true; - static bool FromSystem_bs; - if( FirstCall_bs ) - { - FirstCall_bs = false; - FromSystem_bs = access( "/usr/lib/YaST2/.Reh", R_OK )!=0; - y2milestone( "RunningFromSystem %d", FromSystem_bs ); - } - return( FromSystem_bs ); - } - static blocxx::String component = "libstorage"; void Modified: trunk/storage/libstorage/src/AppUtil.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/AppUtil.h?rev=49325&r1=49324&r2=49325&view=diff ============================================================================== --- trunk/storage/libstorage/src/AppUtil.h (original) +++ trunk/storage/libstorage/src/AppUtil.h Tue Jul 22 13:52:49 2008 @@ -50,7 +50,6 @@ string undevDevice( const string& dev ); void undevDevice( string& dev ); bool isNfsDev( const string& dev ); -bool runningFromSystem(); void delay(int Microsec_iv); unsigned getMajorDevices( const string& driver ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org