A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kill a now useless function
[simgrid.git]
/
src
/
surf
/
surf_routing.cpp
diff --git
a/src/surf/surf_routing.cpp
b/src/surf/surf_routing.cpp
index
3dee138
..
aa86759
100644
(file)
--- a/
src/surf/surf_routing.cpp
+++ b/
src/surf/surf_routing.cpp
@@
-60,8
+60,7
@@
simgrid::kernel::routing::NetCard *sg_netcard_by_name_or_null(const char *name)
}
/* Global vars */
}
/* Global vars */
-simgrid::kernel::routing::RoutingPlatf *routing_platf = nullptr;
-
+simgrid::kernel::routing::RoutingPlatf* routing_platf = new simgrid::kernel::routing::RoutingPlatf();
void sg_platf_new_trace(sg_platf_trace_cbarg_t trace)
{
void sg_platf_new_trace(sg_platf_trace_cbarg_t trace)
{
@@
-128,12
+127,6
@@
xbt_dynar_t RoutingPlatf::getOneLinkRoutes(){
}}}
}}}
-/** @brief create the root AS */
-void routing_model_create(Link *loopback)
-{
- routing_platf = new simgrid::kernel::routing::RoutingPlatf(loopback);
-}
-
/* ************************************************************************** */
/* ************************* GENERIC PARSE FUNCTIONS ************************ */
/* ************************************************************************** */
/* ************************* GENERIC PARSE FUNCTIONS ************************ */
@@
-165,10
+158,7
@@
void routing_exit() {
delete routing_platf;
}
delete routing_platf;
}
-simgrid::kernel::routing::RoutingPlatf::RoutingPlatf(simgrid::surf::Link *loopback)
-: loopback_(loopback)
-{
-}
+simgrid::kernel::routing::RoutingPlatf::RoutingPlatf() = default;
simgrid::kernel::routing::RoutingPlatf::~RoutingPlatf()
{
delete root_;
simgrid::kernel::routing::RoutingPlatf::~RoutingPlatf()
{
delete root_;