X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fc730f07112dd56d4201ee307bc7c54b8ad22df0..9247d4b33ae71aa749f24c052cae31a133fa9f61:/src/msg/msg_host.cpp diff --git a/src/msg/msg_host.cpp b/src/msg/msg_host.cpp index 28bd9bbf3b..b676e16beb 100644 --- a/src/msg/msg_host.cpp +++ b/src/msg/msg_host.cpp @@ -29,11 +29,6 @@ msg_host_t __MSG_host_create(sg_host_t host) // FIXME: don't return our paramete { msg_host_priv_t priv = xbt_new0(s_msg_host_priv_t, 1); - priv->dp_objs = nullptr; - priv->dp_enabled = 0; - priv->dp_updated_by_deleted_tasks = 0; - priv->is_migrating = 0; - priv->file_descriptor_table = nullptr; sg_host_msg_set(host,priv); @@ -114,10 +109,6 @@ void __MSG_host_priv_free(msg_host_priv_t priv) { if (priv == nullptr) return; - unsigned int size = priv->dp_objs ? xbt_dict_size(priv->dp_objs) : 0; - if (size > 0) - XBT_WARN("dp_objs: %u pending task?", size); - xbt_dict_free(&priv->dp_objs); delete priv->file_descriptor_table; free(priv); } @@ -207,10 +198,10 @@ xbt_dict_t MSG_host_get_properties(msg_host_t host) * \param host a host * \param name a property name * \param value what to change the property to - * \param free_ctn the freeing function to use to kill the value on need */ -void MSG_host_set_property_value(msg_host_t host, const char *name, char *value,void_f_pvoid_t free_ctn) { - xbt_dict_set(MSG_host_get_properties(host), name, value,free_ctn); +void MSG_host_set_property_value(msg_host_t host, const char* name, char* value) +{ + xbt_dict_set(MSG_host_get_properties(host), name, value, nullptr); } /** @ingroup m_host_management