Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove second call to lmm_on_disabled_var() which looks like a no-op.
[simgrid.git] / 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);