From: donassbr Date: Wed, 4 Nov 2009 12:13:23 +0000 (+0000) Subject: Remove old code and useless code. X-Git-Tag: SVN~890 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d8b824796f811983af9dc43c8b66f1e9c6519199 Remove old code and useless code. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6827 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/surf/maxmin.c b/src/surf/maxmin.c index 8b63e08a42..b8e210d3a0 100644 --- a/src/surf/maxmin.c +++ b/src/surf/maxmin.c @@ -497,22 +497,6 @@ void lmm_solve(lmm_system_t sys) } } - /* Init: special case where all constraints are 0 */ - var_list = &(sys->variable_set); - DEBUG1("Variable set : %d", xbt_swag_size(var_list)); - xbt_swag_foreach(var, var_list) { - int nb = 0; - int i; - if (var->weight <= 0.0) - break; - for (i = 0; i < var->cnsts_number; i++) { - if (var->cnsts[i].value == 0.0) - nb++; - } - if ((nb == var->cnsts_number) && (var->weight > 0.0)) - var->value = 1.0; - } - DEBUG1("Active constraints : %d", xbt_swag_size(cnst_list)); xbt_swag_foreach(cnst, cnst_list) { /* INIT */