Author: jreidinger Date: Thu Apr 16 13:16:19 2009 New Revision: 56805 URL: http://svn.opensuse.org/viewcvs/yast?rev=56805&view=rev Log: remove function strip. as noone use it and exist in module String function CutBlanks, which is same (and maybe better) 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=56805&r1=56804&r2=56805&view=diff ============================================================================== --- trunk/bootloader/src/routines/misc.ycp (original) +++ trunk/bootloader/src/routines/misc.ycp Thu Apr 16 13:16:19 2009 @@ -818,36 +818,6 @@ } /** - * removes trailing and leading blank chars from string. - * eg: " as df " -> "as df" - * @param str string source string - * @return string stripped string - */ - define string strip(string str)``{ - //emtpy string - if (size(str) == 0) return ""; - - integer bound = size(str); - integer first = 0; - integer last = size(str) - 1; - // find first non-blank char - while(first < bound && isBlank(substring(str, first, 1))) - { - first = first + 1; - } - - while(last >= 0 && isBlank(substring(str, last, 1))) - { - last = last - 1; - } - if (last >= first) - { - return substring(str, first, last - first + 1); - } - return ""; - } - - /** * returns list difference A \ B (items that are in A and are not in B) * @param a list A * @param b list B -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org