Author: aschnell
Date: Thu Nov 13 12:04:50 2008
New Revision: 53263
URL: http://svn.opensuse.org/viewcvs/yast?rev=53263&view=rev
Log:
- remove unused function
Modified:
trunk/storage/storage/src/include/custom_part_dialogs.ycp
Modified: trunk/storage/storage/src/include/custom_part_dialogs.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/custom_part_dialogs.ycp?rev=53263&r1=53262&r2=53263&view=diff
==============================================================================
--- trunk/storage/storage/src/include/custom_part_dialogs.ycp (original)
+++ trunk/storage/storage/src/include/custom_part_dialogs.ycp Thu Nov 13 12:04:50 2008
@@ -981,59 +981,6 @@
};
-/**
- * Dialogpart: Size Dialog
- * @parm new_val map that contains a partition
- * @parm edit_size flag
- * @return term the term contains two TextEntries or to Labels with the start and the end cylinder of
- * the partition in new_val
- */
-define term SizeDlg( map new_val, integer cyl_size, boolean edit_size, boolean disk )
- ``{
- string start_cyl = sformat( "%1", new_val["region",0]:0 );
- string end_part = sformat( "%1", (integer)(new_val["region",0]:0) +
- (integer)(new_val["region",1]:1) -1 );
-
- float mb_cyl_size = ( tofloat(cyl_size) /1024.0 /1024.0 );
- string str_cyl_size = substring( sformat( "%1", mb_cyl_size ), 0, 4);
-
-
- if( new_val["create"]:false && edit_size )
- {
- // label text
- return `Frame ( _("Size"),
- `VBox(
- // label text
- `Left(`Label(_("Cylinder size: ")+ str_cyl_size + " M" )),
- `VSpacing(0.5),
- // label text
- `TextEntry(`id(`start_cyl), _("S&tart cylinder:"), start_cyl ),
- `VSpacing(0.5),
- // label text
- `TextEntry(`id(`end_part), _("En&d: (9 or +9M or +3.2GB)"), end_part)
- )
- );
- }
- else if( disk )
- {
- return (
- `HBox(
- // label text
- `Left(`Label( _("Type of partition: ")
- // label text
- + _("\nStart cylinder:")
- // label text
- + _("\nEnd cylinder: ") )),
- `Left(`Label( new_val["fstype"]:""
- + "\n " + start_cyl
- + "\n " + end_part ))
- ));
- }
- else
- return( `Empty() );
-}
-
-
define term FormatDlg( map new_val, map