Author: aschnell Date: Thu Oct 30 11:56:43 2008 New Revision: 52728 URL: http://svn.opensuse.org/viewcvs/yast?rev=52728&view=rev Log: - removed two obsolete functions Modified: trunk/storage/storage/src/include/partition_defines.ycp trunk/storage/storage/src/inst_custom_part.ycp Modified: trunk/storage/storage/src/include/partition_defines.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/partition_defines.ycp?rev=52728&r1=52727&r2=52728&view=diff ============================================================================== --- trunk/storage/storage/src/include/partition_defines.ycp (original) +++ trunk/storage/storage/src/include/partition_defines.ycp Thu Oct 30 11:56:43 2008 @@ -116,26 +116,6 @@ }; -/*--------------------------------------------------------------------- - * Convert <number-of-bytes> to XXX.X MB or XXX.X GB or XXX.X TB - * - * see also ByteToHumanStringWithZero ! - * Return value: string "unknown" if input == 0 - *---------------------------------------------------------------------- - * TODO: remove - */ -string ByteToHumanString(integer number) -{ - if (number == 0) - { - // column description, if disk space is not known - return _("unknown"); - } - - return String::FormatSizeWithPrecision(number, 2, false); -}; - - /*--------------------------------------------------------------------- * get a list of not used mountpoints *------------------------------------ @@ -169,29 +149,6 @@ }; -/*--------------------------------------------------------------------- - * Convert <number-of-bytes> to XXX.X MB or XXX.X GB or XXX.X TB - * - * see also ByteToHumanString ! - * Return value: string "0" if input == 0 - *---------------------------------------------------------------------- - * TODO: remove - */ -/* -string ByteToHumanStringWithZero(integer number) -{ - if (number == 0) - { - // label text, short for Megabyte (MB) - return "0 " + _("MB"); - } - else - { - return ByteToHumanString(number); - } -}; -*/ - //////////////////////////////////////////////////////////////////////// // input: // win_size_f: new size of wimdows partion in bytes as float Modified: trunk/storage/storage/src/inst_custom_part.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/inst_custom_part.ycp?rev=52728&r1=52727&r2=52728&view=diff ============================================================================== --- trunk/storage/storage/src/inst_custom_part.ycp (original) +++ trunk/storage/storage/src/inst_custom_part.ycp Thu Oct 30 11:56:43 2008 @@ -878,7 +878,7 @@ Use the maximum allowed value? "), int_end_cyl, disk["label"]:"", - ByteToHumanString(Storage::MaxSizeLabelK( disk )*1024), + Storage::KByteToHumanString(Storage::MaxSizeLabelK(disk)), max_cyl ); boolean ans = Popup::YesNo( text ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org