Mailinglist Archive: yast-commit (953 mails)

< Previous Next >
[yast-commit] r49874 - /trunk/storage/storage/src/include/raid_lib.ycp
  • From: aschnell@xxxxxxxxxxxxxxxx
  • Date: Fri, 08 Aug 2008 13:48:26 -0000
  • Message-id: <20080808134826.A8E6D47141@xxxxxxxxxxxxxxxx>
Author: aschnell
Date: Fri Aug 8 15:48:26 2008
New Revision: 49874

URL: http://svn.opensuse.org/viewcvs/yast?rev=49874&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=49874&r1=49873&r2=49874&view=diff
==============================================================================
--- trunk/storage/storage/src/include/raid_lib.ycp (original)
+++ trunk/storage/storage/src/include/raid_lib.ycp Fri Aug 8 15:48:26 2008
@@ -78,20 +78,6 @@
};


-
-/**
- * Update Raid ComboBox
- *
- */
-define void new_raid_list( list<term> all_raids )
- ``{
- y2milestone( "Update Raid ComboBox: all md devices: %1 " , all_raids );
- UI::ReplaceWidget( `id(`raids_rp) , `ComboBox(`id(`raids), `opt(`notify),
- // label text
- _("R&AID:"),all_raids ));
- };
-
-
/*
* Get all partitions, we can probably use as raid devices
* Add needed information: is_raid, disksize
@@ -168,63 +154,6 @@


/**
- * belongs the the partition "id" already to a raid
- * if YES: popup a proper Message and return(false)
- */
-define boolean CheckItemIsNotRaid( map<string,map> tg, string id )
- ``{
- y2debug("Check Item is not Raid ");
- // error case:
- if( id!=nil && size(id) > 0 )
- {
- if( !isItemRd(tg,id) )
- {
- return( true );
- }
- // Message popup
- Popup::Message (sformat(_("Item %1 is already a RAID device.
-You cannot add it again.
-"), id));
- }
- else
- {
- //Message popup
- Popup::Message(_("You have to select one device in the table"));
- }
-
- return( false );
- };
-
-
-/**
- * belongs the the partition "id" already to a raid?
- * if NO: popup a proper Message and return(false)
- **/
-define boolean CheckItemIsRaid( map<string,map> tg, string id )
- ``{
- // error case:
- if( id!=nil && size(id) > 0 )
- {
- if( isItemRd(tg,id) )
- {
- return( true );
- }
- // Message popup
- Popup::Message (sformat(_("Item %1 cannot be removed.
-It does not belong to a RAID.
-"), id ));
- }
- else
- {
- //Message popup
- Popup::Message (_("You have to select one device in the table"));
- }
-
- return( false );
- };
-
-
-/**
* number for /dev/mdX, 0 for /dev/md0, 1 for /dev/md1
*/
define integer get_free_raid_nr( map<string,map> targetMap, integer min )

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages