From: Martin Quinson Date: Sun, 28 Jul 2019 23:31:06 +0000 (+0200) Subject: MC: kill a useless function X-Git-Tag: v3.24~236 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/7ecb4ca0914cfbd58786dac35ec97fc7c5518332?ds=sidebyside MC: kill a useless function --- diff --git a/src/mc/mc_smx.cpp b/src/mc/mc_smx.cpp index 920a9a2a7e..2830defe05 100644 --- a/src/mc/mc_smx.cpp +++ b/src/mc/mc_smx.cpp @@ -145,17 +145,6 @@ const char* MC_smx_actor_get_name(smx_actor_t actor) return info->name.c_str(); } -#if HAVE_SMPI -int MC_smpi_process_count() -{ - if (mc_model_checker == nullptr) - return smpi_process_count(); - int res; - mc_model_checker->process().read_variable("process_count", &res, sizeof(res)); - return res; -} -#endif - unsigned long MC_smx_get_maxpid() { unsigned long maxpid; diff --git a/src/mc/mc_smx.hpp b/src/mc/mc_smx.hpp index 3c7165d6d4..e46a1ee529 100644 --- a/src/mc/mc_smx.hpp +++ b/src/mc/mc_smx.hpp @@ -42,8 +42,6 @@ XBT_PRIVATE smx_actor_t MC_smx_simcall_get_issuer(s_smx_simcall const* req); XBT_PRIVATE const char* MC_smx_actor_get_name(smx_actor_t p); XBT_PRIVATE const char* MC_smx_actor_get_host_name(smx_actor_t p); -XBT_PRIVATE int MC_smpi_process_count(void); - XBT_PRIVATE unsigned long MC_smx_get_maxpid(void); #endif