Author: jreidinger Date: Thu Apr 16 14:20:19 2009 New Revision: 56810 URL: http://svn.opensuse.org/viewcvs/yast?rev=56810&view=rev Log: remove delete_white_space function and replace it by one from String module Modified: trunk/bootloader/src/routines/misc.ycp Modified: trunk/bootloader/src/routines/misc.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/bootloader/src/routines/misc.ycp?rev=56810&r1=56809&r2=56810&view=diff ============================================================================== --- trunk/bootloader/src/routines/misc.ycp (original) +++ trunk/bootloader/src/routines/misc.ycp Thu Apr 16 14:20:19 2009 @@ -37,6 +37,7 @@ import "Directory"; import "Installation"; import "FileUtils"; + import "String"; // bootloader attributes handling functions @@ -1765,24 +1766,6 @@ return value; } -/** - * Fuction delete " " on the beginning of string - * - */ - -string delete_white_space(string temp) -{ - string ret = temp; - while (findfirstof(temp," ") == 0) - { - temp = substring(temp, 1); - - } - ret = temp; - return temp; -} - - /** bnc #440125 - default boot section with failsafe args * Compare append from default linux section with append from * BootCommon::sections @@ -1793,8 +1776,8 @@ { integer deuce = 0; // delete white space on the beginning of string - default_append = delete_white_space(default_append); - section_append = delete_white_space(section_append); + default_append = String::CutBlanks(default_append); + section_append = String::CutBlanks(section_append); // check valid append for section //FIXME JR I think this is not true, append is valid even if it contain only one letter '3' which mean go to runlevel 3 if (size(section_append) < 3) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org