From: Martin Quinson Date: Fri, 4 Nov 2011 13:09:22 +0000 (+0100) Subject: remove useless empty parsing callbacks X-Git-Tag: exp_20120216~491 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/02b01c149a7f9b34d025353b1ed4078150ffcd62?ds=sidebyside remove useless empty parsing callbacks --- diff --git a/src/instr/instr_routing.c b/src/instr/instr_routing.c index 744d9041fd..ae3ea4b285 100644 --- a/src/instr/instr_routing.c +++ b/src/instr/instr_routing.c @@ -225,10 +225,6 @@ static void instr_routing_parse_start_link () xbt_dynar_free (&links_to_create); } -static void instr_routing_parse_end_link () -{ -} - static void instr_routing_parse_start_host () { container_t father = *(container_t*)xbt_dynar_get_ptr(currentContainer, xbt_dynar_length(currentContainer)-1); @@ -270,20 +266,12 @@ static void instr_routing_parse_start_host () } } -static void instr_routing_parse_end_host () -{ -} - static void instr_routing_parse_start_router () { container_t father = *(container_t*)xbt_dynar_get_ptr(currentContainer, xbt_dynar_length(currentContainer)-1); newContainer (struct_router->V_router_id, INSTR_ROUTER, father); } -static void instr_routing_parse_end_router () -{ -} - static void instr_routing_parse_end_platform () { xbt_dynar_free(¤tContainer); @@ -304,11 +292,8 @@ void instr_routing_define_callbacks () surfxml_add_callback(ETag_surfxml_AS_cb_list, &instr_routing_parse_end_AS); if (!TRACE_needs_platform()) return; surfxml_add_callback(STag_surfxml_link_cb_list, &instr_routing_parse_start_link); - surfxml_add_callback(ETag_surfxml_link_cb_list, &instr_routing_parse_end_link); surfxml_add_callback(STag_surfxml_host_cb_list, &instr_routing_parse_start_host); - surfxml_add_callback(ETag_surfxml_host_cb_list, &instr_routing_parse_end_host); surfxml_add_callback(STag_surfxml_router_cb_list, &instr_routing_parse_start_router); - surfxml_add_callback(ETag_surfxml_router_cb_list, &instr_routing_parse_end_router); surfxml_add_callback(ETag_surfxml_platform_cb_list, &instr_routing_parse_end_platform); }