From: Martin Quinson Date: Thu, 8 Dec 2016 20:36:07 +0000 (+0100) Subject: cosmetics X-Git-Tag: v3_14~90 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/950cc4801996b41ef472e2ed2d77fb66177d8755 cosmetics --- diff --git a/src/surf/ns3/ns3_interface.h b/src/surf/ns3/ns3_interface.h index 9adccba944..5445afa71b 100644 --- a/src/surf/ns3/ns3_interface.h +++ b/src/surf/ns3/ns3_interface.h @@ -6,14 +6,7 @@ #ifndef _NS3_INTERFACE_H #define _NS3_INTERFACE_H -#include "xbt/log.h" -#include "xbt/dynar.h" -#include "xbt/misc.h" -#include "xbt/sysdep.h" -#include - #include -#include namespace simgrid{ namespace surf{ diff --git a/src/surf/ns3/ns3_simulator.h b/src/surf/ns3/ns3_simulator.h index 1114a721d0..804863851b 100644 --- a/src/surf/ns3/ns3_simulator.h +++ b/src/surf/ns3/ns3_simulator.h @@ -7,21 +7,16 @@ #ifndef _NS3_SIM_H #define _NS3_SIM_H -#ifdef __cplusplus - #include #include "ns3_interface.h" -#include -#include #include #include #include #include #include #include -#include #include class SgFlow { @@ -49,6 +44,4 @@ static inline const char *transformSocketPtr (ns3::Ptr localSocket) return key; } -#endif /* __cplusplus */ - #endif diff --git a/src/surf/sg_platf.cpp b/src/surf/sg_platf.cpp index 15d2df7421..73f817c0d6 100644 --- a/src/surf/sg_platf.cpp +++ b/src/surf/sg_platf.cpp @@ -111,7 +111,6 @@ void sg_platf_new_host(sg_platf_host_cbarg_t args) /** @brief Add a "router" to the network element list */ void sg_platf_new_router(sg_platf_router_cbarg_t router) { - using simgrid::kernel::routing::AsCluster; simgrid::kernel::routing::AsImpl* current_routing = routing_get_current(); if (current_routing->hierarchy_ == simgrid::kernel::routing::AsImpl::RoutingMode::unset) @@ -142,7 +141,7 @@ void sg_platf_new_router(sg_platf_router_cbarg_t router) xbt_lib_set(as_router_lib, router->id, COORD_ASR_LEVEL, (void *) ctn); } - auto cluster = dynamic_cast(current_routing); + auto cluster = dynamic_cast(current_routing); if(cluster != nullptr) cluster->router_ = static_cast(xbt_lib_get_or_null(as_router_lib, router->id, ROUTING_ASR_LEVEL));