Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill unused functions.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 22 Nov 2017 17:28:17 +0000 (18:28 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 24 Nov 2017 09:55:19 +0000 (10:55 +0100)
src/include/surf/maxmin.hpp
src/surf/maxmin.cpp

index 68f3f40..179793a 100644 (file)
@@ -325,22 +325,6 @@ XBT_PUBLIC(lmm_variable_t)
 lmm_get_var_from_cnst_safe(lmm_system_t sys, lmm_constraint_t cnst, lmm_element_t* elem, lmm_element_t* nextelem,
                            int* numelem);
 
 lmm_get_var_from_cnst_safe(lmm_system_t sys, lmm_constraint_t cnst, lmm_element_t* elem, lmm_element_t* nextelem,
                            int* numelem);
 
-/**
- * @brief Get the first active constraint of a system
- * @param sys A system
- * @return The first active constraint
- */
-XBT_PUBLIC(lmm_constraint_t) lmm_get_first_active_constraint(lmm_system_t sys);
-
-/**
- * @brief Get the next active constraint of a constraint in a system
- * @param sys A system
- * @param cnst An active constraint of the system
- *
- * @return The next active constraint
- */
-XBT_PUBLIC(lmm_constraint_t) lmm_get_next_active_constraint(lmm_system_t sys, lmm_constraint_t cnst);
-
 /**
  * @brief Get the data associated to a constraint
  * @param cnst A constraint
 /**
  * @brief Get the data associated to a constraint
  * @param cnst A constraint
index f2ada3f..4595fbb 100644 (file)
@@ -1046,16 +1046,6 @@ int lmm_constraint_used(lmm_system_t sys, lmm_constraint_t cnst)
   return xbt_swag_belongs(cnst, &(sys->active_constraint_set));
 }
 
   return xbt_swag_belongs(cnst, &(sys->active_constraint_set));
 }
 
-inline lmm_constraint_t lmm_get_first_active_constraint(lmm_system_t sys)
-{
-  return (lmm_constraint_t)xbt_swag_getFirst(&(sys->active_constraint_set));
-}
-
-inline lmm_constraint_t lmm_get_next_active_constraint(lmm_system_t sys, lmm_constraint_t cnst)
-{
-  return (lmm_constraint_t)xbt_swag_getNext(cnst, (sys->active_constraint_set).offset);
-}
-
 /** \brief Update the constraint set propagating recursively to other constraints so the system should not be entirely
  *  computed.
  *
 /** \brief Update the constraint set propagating recursively to other constraints so the system should not be entirely
  *  computed.
  *