From: Frederic Suter Date: Thu, 14 Jan 2016 13:53:18 +0000 (+0100) Subject: routing stuff in SimDag is dead code added by navarrop (nobody ever used X-Git-Tag: v3_13~1244 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/da3e3559ec1388c6b9c0335b1489a83ea7f1b58e?hp=4be8e24c6d490dfbca2fe7e62da90202065d9d03 routing stuff in SimDag is dead code added by navarrop (nobody ever used it) --- diff --git a/include/simgrid/simdag.h b/include/simgrid/simdag.h index a1e997f963..5226d58e54 100644 --- a/include/simgrid/simdag.h +++ b/include/simgrid/simdag.h @@ -98,11 +98,6 @@ typedef enum { @see SD_storage_management */ typedef xbt_dictelm_t SD_storage_t; -/************************** AS handling *************************************/ -XBT_PUBLIC(xbt_dict_t) SD_as_router_get_properties(const char *as); -XBT_PUBLIC(const char*) SD_as_router_get_property_value(const char * as, - const char *name); - /************************** Link handling ***********************************/ /** @defgroup SD_link_management Links * @brief Functions for managing the network links diff --git a/src/simdag/sd_workstation.cpp b/src/simdag/sd_workstation.cpp index 68bb80e4f6..9b21a9a804 100644 --- a/src/simdag/sd_workstation.cpp +++ b/src/simdag/sd_workstation.cpp @@ -549,28 +549,3 @@ SD_task_t SD_workstation_get_current_task(SD_workstation_t workstation) return (sg_host_sd(workstation)->current_task); } -/** - * \brief Returns a #xbt_dict_t consisting of the list of properties assigned to the AS - * or router - * - * \param AS, router name - * \return the xbt_dict_t properties of the AS - */ -xbt_dict_t SD_as_router_get_properties(const char *asr) -{ - return get_as_router_properties(asr); -} -/** - * \brief Returns a #xbt_dict_t consisting of the list of properties assigned to the AS - * or router - * - * \param AS, router name - * \param The name of a properties - * \return value of the properties - */ -const char* SD_as_router_get_property_value(const char *asr, const char *name) -{ - xbt_dict_t dict = get_as_router_properties(asr); - if(!dict) return NULL; - return (const char*)xbt_dict_get_or_null(dict,name); -}