From: Fred Suter Date: Wed, 27 Sep 2023 13:14:24 +0000 (-0400) Subject: simplify and remove silly debug X-Git-Tag: v3.35~97 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/718bee0ecd82d03ef877e66f9ecb77c9e69a599b simplify and remove silly debug --- diff --git a/src/kernel/routing/NetZone_test.hpp b/src/kernel/routing/NetZone_test.hpp index fb88a12aae..76a955b54d 100644 --- a/src/kernel/routing/NetZone_test.hpp +++ b/src/kernel/routing/NetZone_test.hpp @@ -12,14 +12,10 @@ XBT_LOG_EXTERNAL_CATEGORY(ker_platform); // Callback function common to several routing unit tests struct CreateHost { - simgrid::s4u::NetZone* operator()(simgrid::s4u::NetZone* zone, const std::vector& /*coord*/, + simgrid::s4u::Host* operator()(simgrid::s4u::NetZone* zone, const std::vector& /*coord*/, unsigned long id) const { - XBT_CINFO(ker_platform,"PROUT"); - auto* host_zone = simgrid::s4u::create_empty_zone("zone-" +std::to_string(id))->set_parent(zone); - host_zone->create_host(std::to_string(id), "1Gf"); - host_zone->seal(); - return host_zone; + return zone->create_host(std::to_string(id), "1Gf"); } };