X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0f5e8daaa6e9f74521068aa75837200bcd182ea6..d740a86eb8bb0e5d729e0ad55db7395444dad131:/src/surf/surf_model.c diff --git a/src/surf/surf_model.c b/src/surf/surf_model.c index cfe7d57ace..028b732e67 100644 --- a/src/surf/surf_model.c +++ b/src/surf/surf_model.c @@ -34,7 +34,6 @@ surf_model_t surf_model_init(void) xbt_swag_new(xbt_swag_offset(action, state_hookup)); model->states.done_action_set = xbt_swag_new(xbt_swag_offset(action, state_hookup)); - model->resource_set = xbt_dict_new(); model->action_unref = int_die_impossible_paction; model->action_cancel = void_die_impossible_paction; @@ -57,12 +56,6 @@ void surf_model_exit(surf_model_t model) xbt_swag_free(model->states.running_action_set); xbt_swag_free(model->states.failed_action_set); xbt_swag_free(model->states.done_action_set); - xbt_dict_free(&model->resource_set); free(model->model_private); free(model); } - -void *surf_model_resource_by_name(surf_model_t model, const char *name) -{ - return xbt_dict_get_or_null(model->resource_set, name); -}