X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a009335302ac96061f77c83afbe51af640d898b0..745a5ade14924e2b2684a280e4cb75a9c1d3bee7:/src/xbt/dict_elm.c diff --git a/src/xbt/dict_elm.c b/src/xbt/dict_elm.c index 28c0901024..be4d8a0c0b 100644 --- a/src/xbt/dict_elm.c +++ b/src/xbt/dict_elm.c @@ -1,6 +1,6 @@ /* dict - a generic dictionary, variation over hash table */ -/* Copyright (c) 2004-2017. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2004-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -42,12 +42,9 @@ void xbt_dictelm_free(xbt_dict_t dict, xbt_dictelm_t element) } } -void xbt_dictelm_set_data(xbt_dict_t dict, xbt_dictelm_t element, void *data, void_f_pvoid_t free_ctn) +void xbt_dictelm_set_data(xbt_dict_t dict, xbt_dictelm_t element, void* data) { - void_f_pvoid_t free_f; - free_f = dict->free_f; - xbt_assert(!free_ctn, "Cannot set an individual free function in homogeneous dicts."); - + void_f_pvoid_t free_f = dict->free_f; if (free_f && element->content) free_f(element->content);