From: Martin Quinson Date: Mon, 5 Dec 2016 19:27:06 +0000 (+0100) Subject: kill the now empty RoutingPlatf datatype \o/ X-Git-Tag: v3_14~114 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/93e61dfeaf9e26b41a485b9d6b3a0206c8306b43 kill the now empty RoutingPlatf datatype \o/ --- diff --git a/src/surf/surf_interface.cpp b/src/surf/surf_interface.cpp index 3f6b63d7a1..d5b6319510 100644 --- a/src/surf/surf_interface.cpp +++ b/src/surf/surf_interface.cpp @@ -344,7 +344,6 @@ void surf_exit() delete model; delete all_existing_models; xbt_dynar_free(&model_list_invoke); - routing_exit(); simgrid::surf::surfExitCallbacks(); diff --git a/src/surf/surf_routing.cpp b/src/surf/surf_routing.cpp index 777f4d75db..1d90650b89 100644 --- a/src/surf/surf_routing.cpp +++ b/src/surf/surf_routing.cpp @@ -59,9 +59,6 @@ simgrid::kernel::routing::NetCard *sg_netcard_by_name_or_null(const char *name) return netcard; } -/* Global vars */ -simgrid::kernel::routing::RoutingPlatf* routing_platf = new simgrid::kernel::routing::RoutingPlatf(); - void sg_platf_new_trace(sg_platf_trace_cbarg_t trace) { tmgr_trace_t tmgr_trace; @@ -101,10 +98,3 @@ void routing_register_callbacks() instr_routing_define_callbacks(); } -/** \brief Frees all memory allocated by the routing module */ -void routing_exit() { - delete routing_platf; -} - -simgrid::kernel::routing::RoutingPlatf::RoutingPlatf() = default; -simgrid::kernel::routing::RoutingPlatf::~RoutingPlatf() = default; diff --git a/src/surf/surf_routing.hpp b/src/surf/surf_routing.hpp index 0d99e6aa7a..01a39c947c 100644 --- a/src/surf/surf_routing.hpp +++ b/src/surf/surf_routing.hpp @@ -100,15 +100,6 @@ public: Link* link_; }; -/** @ingroup SURF_routing_interface - * @brief The class representing a whole routing platform - */ -XBT_PUBLIC_CLASS RoutingPlatf { -public: - explicit RoutingPlatf(); - ~RoutingPlatf(); -}; - }}} #endif /* NETWORK_ROUTING_HPP_ */