X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ae8140f19db6cb86f753e32499eab49190846d1f..6de9090dd8692387ae343c587b26915f9922d7bd:/src/msg/msg_environment.c diff --git a/src/msg/msg_environment.c b/src/msg/msg_environment.c index d4786a7585..5814f78189 100644 --- a/src/msg/msg_environment.c +++ b/src/msg/msg_environment.c @@ -14,32 +14,9 @@ #include #endif -/** @addtogroup msg_easier_life - * \htmlonly \endhtmlonly - * - */ - /********************************* MSG **************************************/ -/** \ingroup msg_easier_life - * \brief A name directory service... - * - * Finds a m_host_t using its name. - * \param name the name of an host. - * \return the corresponding host - */ -m_host_t MSG_get_host_by_name(const char *name) -{ - smx_host_t simix_h = NULL; - simix_h = simcall_host_get_by_name(name); - - if (simix_h == NULL) - return NULL; - - return (m_host_t) simcall_host_get_data(simix_h); -} - -/** \ingroup msg_easier_life +/** \ingroup msg_simulation * \brief A platform constructor. * * Creates a new platform, including hosts, links and the @@ -66,7 +43,7 @@ void MSG_create_environment(const char *file) /* Initialize MSG hosts */ xbt_lib_foreach(host_lib, cursor, name, data) { if(data[SIMIX_HOST_LEVEL]) - __MSG_host_create((smx_host_t)data[SIMIX_HOST_LEVEL], NULL); + __MSG_host_create((smx_host_t)data[SIMIX_HOST_LEVEL]); } }