From: Martin Quinson Date: Sun, 8 Jul 2018 09:34:00 +0000 (+0200) Subject: surf/Cbinding: kill an unused and misnamed function X-Git-Tag: v3_21~526 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c5714d903c9d1e7e3c88e5ee7b6e5b1d098eeab9 surf/Cbinding: kill an unused and misnamed function --- diff --git a/src/include/surf/surf.hpp b/src/include/surf/surf.hpp index 7fb194ed7e..146f104e09 100644 --- a/src/include/surf/surf.hpp +++ b/src/include/surf/surf.hpp @@ -15,14 +15,6 @@ /** @{ @ingroup SURF_c_bindings */ -/** - * @brief Get the size of the running action set of a model - * - * @param model The model - * @return The size of the running action set - */ -XBT_PUBLIC int surf_model_running_action_set_size(simgrid::kernel::resource::Model* model); - /** * @brief [brief description] * @details [long description] diff --git a/src/surf/surf_c_bindings.cpp b/src/surf/surf_c_bindings.cpp index 22f7a3ad83..6830528181 100644 --- a/src/surf/surf_c_bindings.cpp +++ b/src/surf/surf_c_bindings.cpp @@ -152,11 +152,6 @@ double surf_solve(double max_date) /********* * MODEL * *********/ -int surf_model_running_action_set_size(simgrid::kernel::resource::Model* model) -{ - return model->get_started_action_set()->size(); -} - void surf_cpu_action_set_bound(simgrid::kernel::resource::Action* action, double bound) { static_cast(action)->set_bound(bound); diff --git a/teshsuite/surf/surf_usage2/surf_usage2.cpp b/teshsuite/surf/surf_usage2/surf_usage2.cpp index c1ab1b96b1..ad7afbc40f 100644 --- a/teshsuite/surf/surf_usage2/surf_usage2.cpp +++ b/teshsuite/surf/surf_usage2/surf_usage2.cpp @@ -46,7 +46,7 @@ int main(int argc, char **argv) XBT_INFO("Next Event : %g", now); for (auto const& model : *all_existing_models) { - if (surf_model_running_action_set_size(model)) { + if (model->get_started_action_set()->size() != 0) { XBT_DEBUG("\t Running that model"); running = 1; }