Author: aschnell Date: Tue Aug 5 11:30:34 2008 New Revision: 49684 URL: http://svn.opensuse.org/viewcvs/yast?rev=49684&view=rev Log: - removed obsolete code Modified: trunk/storage/storage/src/include/raid_lib.ycp Modified: trunk/storage/storage/src/include/raid_lib.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/raid_lib.ycp?rev=49684&r1=49683&r2=49684&view=diff ============================================================================== --- trunk/storage/storage/src/include/raid_lib.ycp (original) +++ trunk/storage/storage/src/include/raid_lib.ycp Tue Aug 5 11:30:34 2008 @@ -223,53 +223,6 @@ return( false ); }; - - -/** - * partition list to widget table - * in: - * [ $["fsid":142, - * "fstype":"Linux raid", - * "nr":"var", - * "region":[255, 16], - * "type":`primary], - * $[ - * "fsid":131, - * "fstype":"Linux native", - * "nr":4, "region":[271, 844], - * ... - * - * out: - * [ - * `item(`id("/dev/hda1"), "/dev/hda1 ", " 2G ", " LVM ", "md1"), - * `item(`id("/dev/hda2"), "/dev/hda2 ", " 1G ", " Linux ", " ") - * ]; - **/ -define list get_raid_widget_table( list<map> possRdList ) - ``{ - possRdList = - sort( map x, map y, possRdList, - ``{ - if( x["maindev"]:"" == y["maindev"]:"" ) - { - return( x["nr"]:0 < y["nr"]:0 ); - } - else - { - return( x["maindev"]:"" < y["maindev"]:""); - } - }); - - return( maplist( map p, possRdList, - ``{ - return(`item( `id(p["device"]:"--"), p["device"]:"--", - ByteToHumanStringWithZero(p["size_k"]:0*1024), - p["fstype"]:"--", - p["used_by"]:"--" - )); - })); - }; - /** * number for /dev/mdX, 0 for /dev/md0, 1 for /dev/md1 -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org