Author: aschnell
Date: Wed Oct 29 23:54:56 2008
New Revision: 52715
URL: http://svn.opensuse.org/viewcvs/yast?rev=52715&view=rev
Log:
- disabled many unused functions
Modified:
trunk/storage/storage/src/include/lvm_lib.ycp
trunk/storage/storage/src/include/lvm_lv_lib.ycp
trunk/storage/storage/src/include/lvm_pv_lib.ycp
trunk/storage/storage/src/include/lvm_ui_dialogs.ycp
trunk/storage/storage/src/include/partition_defines.ycp
trunk/storage/storage/src/inst_custom_part.ycp
Modified: trunk/storage/storage/src/include/lvm_lib.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/lvm_lib.ycp?rev=52715&r1=52714&r2=52715&view=diff
==============================================================================
--- trunk/storage/storage/src/include/lvm_lib.ycp (original)
+++ trunk/storage/storage/src/include/lvm_lib.ycp Wed Oct 29 23:54:56 2008
@@ -61,6 +61,7 @@
// return "0" if input is invalid
//
// pesize is valid 8kB to 512MB in power of 2
+// used by autoyast
define integer pesize_str_to_byte(string input)
{
integer ret = kmgt_str_to_byte(input);
@@ -76,7 +77,7 @@
//////////////////////////////////////////////////////////////////////
// Let the User create a new Volume group: open dialog ...
// return: the changed targetMap and lvm_vgs and cancelled
-
+// used by autoyast
define map addVolumeGroup( map vg, map targetMap, list lvm_vgs )
``{
boolean cancelled = true;
@@ -117,4 +118,5 @@
``{
return( Storage::DeleteLvmVg( current_vg ));
};
+
}
Modified: trunk/storage/storage/src/include/lvm_lv_lib.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/lvm_lv_lib.ycp?rev=52715&r1=52714&r2=52715&view=diff
==============================================================================
--- trunk/storage/storage/src/include/lvm_lv_lib.ycp (original)
+++ trunk/storage/storage/src/include/lvm_lv_lib.ycp Wed Oct 29 23:54:56 2008
@@ -64,6 +64,7 @@
return( ret );
};
+/*
define boolean editLogicalVolume( map Lv, string current_vg)
``{
y2milestone( "editLogicalVolume Lv:%1", Lv );
@@ -84,6 +85,8 @@
}
return( ret );
};
+*/
+
define boolean removeLogicalVolume( string disk, string device )
``{
@@ -107,7 +110,8 @@
// ...
//
// out: [ 10344343, 2223333 ] [ used, avail ]
-
+
+/*
define list get_lv_size_info( map targetMap, string current_vg )
``{
list ret = [];
@@ -119,7 +123,7 @@
y2milestone( "get_lv_size_info vg=%1 ret=%2", current_vg, ret );
return( ret );
};
-
+*/
////////////////////////////////////////////////////////////////////////////////
// Get all existing lv names of a volume group
@@ -151,6 +155,7 @@
// `item(`id(2//dev/hda), "/dev/hda2 ", " /usr ", "system", " 2G ", " Linux ")
// ];
+/*
define list get_lv_widget_table( list<map> possPvList )
``{
list ret = [];
@@ -181,7 +186,7 @@
}
));
};
-
+*/
}
Modified: trunk/storage/storage/src/include/lvm_pv_lib.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/lvm_pv_lib.ycp?rev=52715&r1=52714&r2=52715&view=diff
==============================================================================
--- trunk/storage/storage/src/include/lvm_pv_lib.ycp (original)
+++ trunk/storage/storage/src/include/lvm_pv_lib.ycp Wed Oct 29 23:54:56 2008
@@ -37,6 +37,7 @@
//
//////////////////////////////////////////////////////////////////////
+// used by autoyast
define boolean addPhysicalVolume( map targetMap, string id,
string current_vg )
``{
@@ -53,8 +54,9 @@
boolean ret = Storage::ExtendLvmVg( current_vg, id );
return( ret );
};
-
+
+/*
define boolean removePhysicalVolume( map targetMap, string id,
string current_vg )
``{
@@ -77,12 +79,13 @@
}
return( ret );
};
-
+*/
//////////////////////////////////////////////////////////////////////
// belongs the the partition "id" already to a volume group
//////////////////////////////////////////////////////////////////////
+/*
define boolean isItemPv( map tg, string id )
``{
map part = $[];
@@ -93,13 +96,13 @@
return( part["used_by_type"]:`UB_NONE == `UB_LVM ||
part["used_by_type"]:`UB_NONE == `UB_EVMS );
};
-
+*/
//////////////////////////////////////////////////////////////////////
// belongs the the partition "id" already to a volume group
// if YES: popup a proper Message and return(false)
//////////////////////////////////////////////////////////////////////
-
+/*
define boolean CheckItemIsNotPv( map tg, string id )
``{
if( !isItemPv(tg,id) )
@@ -156,7 +159,7 @@
}
return( false );
};
-
+*/
/////////////////////////////////////////////////////////////////
// Get all partitions, we can probably use as physical volumes
@@ -239,6 +242,7 @@
* -> Existing LVM partition with volume group
* -> size of volume group to small for all logical partition
*/
+/*
define boolean check_pv_delete( map targetMap, string id,
string current_vg )
``{
@@ -260,7 +264,7 @@
y2milestone( "check_pv_delete ret:%1", ret );
return( ret );
}
-
+*/
boolean check_vgname_dev( string vgname )
{
@@ -282,4 +286,3 @@
return( ret );
}
}
-
Modified: trunk/storage/storage/src/include/lvm_ui_dialogs.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/lvm_ui_dialogs.ycp?rev=52715&r1=52714&r2=52715&view=diff
==============================================================================
--- trunk/storage/storage/src/include/lvm_ui_dialogs.ycp (original)
+++ trunk/storage/storage/src/include/lvm_ui_dialogs.ycp Wed Oct 29 23:54:56 2008
@@ -32,15 +32,17 @@
include "partitioning/custom_part_dialogs.ycp";
include "partitioning/custom_part_lib.ycp";
include "partitioning/lvm_lv_lib.ycp";
-include "partitioning/lvm_ui_lib.ycp";
+/*
define void handle_max( integer stripe, string max_text )
``{
y2milestone( "stripe %1", stripe );
UI::ChangeWidget(`id("max_size"), `Enabled, stripe==1 );
UI::ChangeWidget(`id("max_text"), `Value, stripe==1?max_text:"" );
}
-
+*/
+
+/*
define map DlgCreateEditLogicaVolume( symbol create_or_edit, map Lv,
integer max_size, string vgname,
list lvs, map file_systems,
@@ -381,13 +383,13 @@
return( nil );
}
};
-
+*/
//////////////////////////////////////////////////////////////////////////////
// Dialog "Create a Volume Group
//////////////////////////////////////////////////////////////////////////////
-
+/*
define boolean HandleEditLv( map targetMap, string device )
``{
boolean ret = false;
@@ -420,6 +422,7 @@
y2milestone( "ret %1", ret );
return( ret );
}
+*/
define boolean HandleRemoveLv( map targetMap, string id )
``{
@@ -470,6 +473,7 @@
return( ret );
}
+/*
define map DlgCreateVolumeGroup( list vgm_list )
``{
string vgname = "";
@@ -574,5 +578,6 @@
return( $[] );
}
};
+*/
}
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=52715&r1=52714&r2=52715&view=diff
==============================================================================
--- trunk/storage/storage/src/include/partition_defines.ycp (original)
+++ trunk/storage/storage/src/include/partition_defines.ycp Wed Oct 29 23:54:56 2008
@@ -177,6 +177,7 @@
*----------------------------------------------------------------------
* TODO: remove
*/
+/*
string ByteToHumanStringWithZero(integer number)
{
if (number == 0)
@@ -189,7 +190,7 @@
return ByteToHumanString(number);
}
};
-
+*/
////////////////////////////////////////////////////////////////////////
// input:
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=52715&r1=52714&r2=52715&view=diff
==============================================================================
--- trunk/storage/storage/src/inst_custom_part.ycp (original)
+++ trunk/storage/storage/src/inst_custom_part.ycp Wed Oct 29 23:54:56 2008
@@ -1862,7 +1862,7 @@
}
else if( part["type"]:`unknown == `lvm )
{
- HandleEditLv( tg, id );
+ // HandleEditLv( tg, id );
}
else
{
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org