From 7ecb4ca0914cfbd58786dac35ec97fc7c5518332 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 29 Jul 2019 01:31:06 +0200 Subject: [PATCH 1/1] MC: kill a useless function --- src/mc/mc_smx.cpp | 11 ----------- src/mc/mc_smx.hpp | 2 -- 2 files changed, 13 deletions(-) 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 -- 2.20.1