From: Martin Quinson Date: Thu, 10 Nov 2011 15:19:26 +0000 (+0100) Subject: kill unused static functions X-Git-Tag: exp_20120216~348 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/840bd4689d1c44baf35062cb5707e761b4e0f652?ds=sidebyside kill unused static functions --- diff --git a/src/surf/surf_routing.c b/src/surf/surf_routing.c index 101626c1a2..434ddf14f8 100644 --- a/src/surf/surf_routing.c +++ b/src/surf/surf_routing.c @@ -382,24 +382,6 @@ void routing_AS_end() /* Aux Business methods */ -/** - * \brief Get the AS name of the element - * - * \param name the host name - * - */ -static char *elements_As_name(const char *name) -{ - routing_component_t as_comp; - - /* (1) find the as where the host is located */ - as_comp = ((network_element_info_t) - xbt_lib_get_or_null(host_lib, name, - ROUTING_HOST_LEVEL))->rc_component; - return as_comp->name; -} - - /** * \brief Get the AS father and the first elements of the chain * @@ -1061,30 +1043,6 @@ static void routing_parse_cluster(void) XBT_DEBUG(" "); } -/* - * This function take a string and replace parameters from patterns dict. - * It returns the new value. - */ -static char *replace_random_parameter(char *string) -{ - char *test_string = NULL; - - if (xbt_dict_size(random_value) == 0) - return string; - - string = xbt_str_varsubst(string, patterns); // for patterns of cluster - test_string = bprintf("${%s}", string); - test_string = xbt_str_varsubst(test_string, random_value); //Add ${xxxxx} for random Generator - - if (strcmp(test_string, "")) { //if not empty, keep this value. - xbt_free(string); - string = test_string; - } //In other case take old value (without ${}) - else - free(test_string); - return string; -} - static void routing_parse_postparse(void) { xbt_dict_free(&random_value);