X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/de3dfb527a418c04e54118a3ed7ee83d7ceb2a4c..86cd0192ed278be94c173e011ed9df47a555328a:/src/surf/network.c diff --git a/src/surf/network.c b/src/surf/network.c index c195b2e649..6c2c6c1eb2 100644 --- a/src/surf/network.c +++ b/src/surf/network.c @@ -161,7 +161,6 @@ static void parse_route_set_endpoints(void) src_id = network_card_new(A_surfxml_route_src); dst_id = network_card_new(A_surfxml_route_dst); route_action = A_surfxml_route_action; - route_link_list = xbt_dynar_new(sizeof(char *), &xbt_free_ref); } static void parse_route_set_route(void) @@ -228,9 +227,6 @@ static void add_route(void) } route_new(src_id, dst_id, link_list, nb_link); } - - xbt_dict_free(&route_table); - } static void count_hosts(void) @@ -294,9 +290,7 @@ static void define_callbacks(const char *file) surfxml_add_callback(STag_surfxml_link_cb_list, &parse_link_init); surfxml_add_callback(STag_surfxml_prop_cb_list, &parse_properties); surfxml_add_callback(STag_surfxml_route_cb_list, &parse_route_set_endpoints); - surfxml_add_callback(ETag_surfxml_link_c_ctn_cb_list, &parse_route_elem); surfxml_add_callback(ETag_surfxml_route_cb_list, &parse_route_set_route); - surfxml_add_callback(STag_surfxml_platform_cb_list, &init_data); surfxml_add_callback(ETag_surfxml_platform_cb_list, &add_traces); surfxml_add_callback(ETag_surfxml_platform_cb_list, &add_route); surfxml_add_callback(ETag_surfxml_platform_cb_list, &add_loopback);