Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill unused static functions
[simgrid.git] / src / surf / surf_routing.c
index 101626c..434ddf1 100644 (file)
@@ -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);