Author: aschnell Date: Fri Apr 18 17:28:27 2008 New Revision: 46870 URL: http://svn.opensuse.org/viewcvs/yast?rev=46870&view=rev Log: - removed unfinished checks Modified: branches/tmp/aschnell/part-redesign/storage/src/modules/TabPanel.ycp branches/tmp/aschnell/part-redesign/storage/src/modules/TreePanel.ycp Modified: branches/tmp/aschnell/part-redesign/storage/src/modules/TabPanel.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/sto... ============================================================================== --- branches/tmp/aschnell/part-redesign/storage/src/modules/TabPanel.ycp (original) +++ branches/tmp/aschnell/part-redesign/storage/src/modules/TabPanel.ycp Fri Apr 18 17:28:27 2008 @@ -5,8 +5,7 @@ * Authors: Arvin Schnell <aschnell@suse.de> * * The DumbTab widget must have id `tab. The ids of the items of the DumbTab - * widget must be made of symbols. The id must be the first argument of the - * items. + * widget must be made of symbols. */ { module "TabPanel"; @@ -56,18 +55,6 @@ } - void Check() - { - list<symbol> items1 = maplist(symbol s, map m, data, { return s; }); - - list<symbol> items2 = maplist(term t, (list<term>) UI::QueryWidget(`id(`tab), `Items), - { return t[0, 0]:`none; }); - - if (sort(items1) != sort(items2)) - y2warning("DumbTab items and callback data do not match"); - } - - void AddToHistory() { history = filter(symbol s, history, { return s != current_item; }); @@ -81,7 +68,6 @@ global void Init(map<symbol, map> d) { data = d; - Check(); list<symbol> items = maplist(symbol s, map m, data, { return s; }); current_item = find(symbol s, history, { return contains(items, s); }); Modified: branches/tmp/aschnell/part-redesign/storage/src/modules/TreePanel.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/sto... ============================================================================== --- branches/tmp/aschnell/part-redesign/storage/src/modules/TreePanel.ycp (original) +++ branches/tmp/aschnell/part-redesign/storage/src/modules/TreePanel.ycp Fri Apr 18 17:28:27 2008 @@ -5,8 +5,7 @@ * Authors: Arvin Schnell <aschnell@suse.de> * * The Tree widget must have id `tree. The ids of the items of the Tree - * widget must be made of symbols or strings. The id must be the first - * argument of the items. + * widget must be made of symbols or strings. */ { module "TreePanel"; @@ -54,14 +53,6 @@ } - void Check() - { - list<any> items1 = maplist(any a, map m, data, { return a; }); - - // TODO: likely not worth it, rather clumsy - } - - /** * Initialises internal data and calls the create function of the * selected panel. @@ -71,7 +62,6 @@ global void Init(map<any, map> d) { data = d; - Check(); current_item = UI::QueryWidget(`tree, `CurrentItem); CallCreate(); @@ -97,14 +87,12 @@ { CallDestroy(); data = d; - Check(); current_item = new_item; CallCreate(); } else { data = d; - Check(); } } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org