Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill dead code
authorMartin Quinson <martin.quinson@loria.fr>
Thu, 16 Feb 2017 00:34:57 +0000 (01:34 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Thu, 16 Feb 2017 00:34:57 +0000 (01:34 +0100)
src/msg/msg_process.cpp
src/simix/smx_host.cpp
src/simix/smx_host_private.h

index 82d6774..91ebad6 100644 (file)
@@ -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
index 557251a..a1461a2 100644 (file)
@@ -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<smx_process_arg_t*>(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
index c4594df..72a46cc 100644 (file)
@@ -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<void()> code,