Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove second call to lmm_on_disabled_var() which looks like a no-op.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 24 Nov 2017 10:08:40 +0000 (11:08 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 24 Nov 2017 10:08:47 +0000 (11:08 +0100)
src/surf/maxmin.cpp

index 1ba3f4e..e5006da 100644 (file)
@@ -154,13 +154,6 @@ static void lmm_var_free(lmm_system_t sys, lmm_variable_t var)
       lmm_on_disabled_var(sys, elem.constraint);
   }
 
-  // Check if we can enable new variables going through the constraints where var was.
-  // Do it after removing all elements, so the first disabled variables get priority over those with smaller requirement
-  for (s_lmm_element_t& elem : var->cnsts) {
-    if (xbt_swag_size(&(elem.constraint->disabled_element_set)))
-      lmm_on_disabled_var(sys, elem.constraint);
-  }
-
   var->cnsts.clear();
 
   lmm_check_concurrency(sys);