Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
xbt_config: kill an unused feature: unregistering variables
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 5 Apr 2016 04:40:26 +0000 (06:40 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 5 Apr 2016 04:40:26 +0000 (06:40 +0200)
include/xbt/config.h
src/xbt/config.c

index 745dc01..ed4c4ef 100644 (file)
@@ -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);
index 1cb715f..1a5bb63 100644 (file)
@@ -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.
  *