From: Martin Quinson Date: Tue, 5 Apr 2016 04:40:26 +0000 (+0200) Subject: xbt_config: kill an unused feature: unregistering variables X-Git-Tag: v3_13~180^2~2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/2db7ca916c24c9f6da047de60550dda47690e572?ds=sidebyside;hp=b21bda584c5f7180e4baec02c87dee418a65a941 xbt_config: kill an unused feature: unregistering variables --- diff --git a/include/xbt/config.h b/include/xbt/config.h index 745dc01b56..ed4c4ef1ce 100644 --- a/include/xbt/config.h +++ b/include/xbt/config.h @@ -154,7 +154,6 @@ XBT_PUBLIC(void) xbt_cfg_register_int (const char *name, const char *desc, in XBT_PUBLIC(void) xbt_cfg_register_string (const char *name, const char *desc, const char*default_val,xbt_cfg_cb_t cb_set); XBT_PUBLIC(void) xbt_cfg_register_boolean(const char *name, const char *desc, const char*default_val,xbt_cfg_cb_t cb_set); XBT_PUBLIC(void) xbt_cfg_register_alias(const char *newname, const char *oldname); -XBT_PUBLIC(void) xbt_cfg_unregister(xbt_cfg_t cfg, const char *name); XBT_PUBLIC(void) xbt_cfg_register_str(xbt_cfg_t * cfg, const char *entry); XBT_PUBLIC(void) xbt_cfg_aliases(xbt_cfg_t cfg); diff --git a/src/xbt/config.c b/src/xbt/config.c index 1cb715fd52..1a5bb63284 100644 --- a/src/xbt/config.c +++ b/src/xbt/config.c @@ -278,20 +278,6 @@ void xbt_cfg_register_alias(const char *newname, const char *oldname) xbt_dict_set(simgrid_config, oldname, res, NULL); } -/** @brief Unregister an element from a config set. - * - * @param cfg the config set - * @param name the name of the element to be freed - * - * Note that it removes both the description and the actual content. - * Throws not_found when no such element exists. - */ -void xbt_cfg_unregister(xbt_cfg_t cfg, const char *name) -{ - XBT_DEBUG("Unregister elm '%s' from set %p", name, cfg); - xbt_dict_remove((xbt_dict_t) cfg, name); -} - /** * @brief Parse a string and register the stuff described. *