From: Martin Quinson Date: Thu, 16 Feb 2017 00:34:57 +0000 (+0100) Subject: kill dead code X-Git-Tag: v3_15~361 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/71c99a9d63794db4887045de2512d3a06ff62344?hp=939a250d95df492a4ae10048a3ef6744c80187bc kill dead code --- diff --git a/src/msg/msg_process.cpp b/src/msg/msg_process.cpp index 82d6774fc4..91ebad6981 100644 --- a/src/msg/msg_process.cpp +++ b/src/msg/msg_process.cpp @@ -146,7 +146,6 @@ msg_process_t MSG_process_create_with_environment( /* Simulator data for MSG */ simdata->m_host = host; simdata->data = data; - simdata->last_errno = MSG_OK; /* Let's create the process: SIMIX may decide to start it right now, * even before returning the flow control to us */ @@ -163,12 +162,6 @@ msg_process_t MSG_process_create_with_environment( return process; } -static int MSG_maestro(int argc, char** argv) -{ - int res = MSG_main(); - return res; -} - /* Become a process in the simulation * * Currently this can only be called by the main thread (once) and only work with some thread factories diff --git a/src/simix/smx_host.cpp b/src/simix/smx_host.cpp index 557251a81b..a1461a2344 100644 --- a/src/simix/smx_host.cpp +++ b/src/simix/smx_host.cpp @@ -111,11 +111,6 @@ const char* SIMIX_host_self_get_name() return host->cname(); } -void _SIMIX_host_free_process_arg(void *data) -{ - smx_process_arg_t arg = *(static_cast(data)); - delete arg; -} /** * \brief Add a process to the list of the processes that the host will restart when it comes back * This function add a process to the list of the processes that will be restarted when the host comes diff --git a/src/simix/smx_host_private.h b/src/simix/smx_host_private.h index c4594df501..72a46ccaf6 100644 --- a/src/simix/smx_host_private.h +++ b/src/simix/smx_host_private.h @@ -41,8 +41,6 @@ namespace simgrid { typedef simgrid::simix::Host s_smx_host_priv_t; SG_BEGIN_DECL() -XBT_PRIVATE void _SIMIX_host_free_process_arg(void *); - XBT_PRIVATE void SIMIX_host_add_auto_restart_process(sg_host_t host, const char *name, std::function code,