From ece2a48768fd651b376314538a44fe06da2abec0 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Tue, 15 Nov 2011 09:43:42 +0100 Subject: [PATCH] kill useless asserts: this is not the way routing logics will take to notice about non-existant routes --- src/surf/surf_routing.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/surf/surf_routing.c b/src/surf/surf_routing.c index bca8c1cfb6..a9630d2eb0 100644 --- a/src/surf/surf_routing.c +++ b/src/surf/surf_routing.c @@ -504,7 +504,6 @@ static void _get_route_and_latency(const char *src, const char *dst, e_route->link_list = xbt_dynar_new(global_routing->size_of_link, NULL); common_father->get_route(common_father, src, dst, e_route); - xbt_assert(e_route, "no route between \"%s\" and \"%s\"", src, dst); *route = e_route->link_list; if (latency) @@ -567,8 +566,6 @@ static void _get_route_and_latency(const char *src, const char *dst, (route ? &route_src : NULL), latency); - xbt_assert(route_src, "no route between \"%s\" and \"%s\"", - src, e_route_cnt->src_gateway); xbt_dynar_foreach(route_src, cpt, link) { xbt_dynar_push(*route, &link); } @@ -587,8 +584,6 @@ static void _get_route_and_latency(const char *src, const char *dst, (route ? &route_dst : NULL), latency); - xbt_assert(route_dst, "no route between \"%s\" and \"%s\"", - e_route_cnt->dst_gateway, dst); xbt_dynar_foreach(route_dst, cpt, link) { xbt_dynar_push(*route, &link); } -- 2.20.1