X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/41f97f763bc1771fe15e96ffcd4ff3e7c76a9a63..b1801e7056930569752cf33757134cb44d32cfac:/src/s4u/s4u_Link.cpp diff --git a/src/s4u/s4u_Link.cpp b/src/s4u/s4u_Link.cpp index c084839bcd..dad2525683 100644 --- a/src/s4u/s4u_Link.cpp +++ b/src/s4u/s4u_Link.cpp @@ -23,16 +23,8 @@ simgrid::xbt::signal Link::on_destruction; simgrid::xbt::signal Link::on_state_change; simgrid::xbt::signal Link::on_bandwidth_change; simgrid::xbt::signal Link::on_communicate; -simgrid::xbt::signal Link::on_communication_state_change; - -void Link::destroy() -{ - if (not currentlyDestroying_) { - currentlyDestroying_ = true; - on_destruction(*this); - Engine::get_instance()->link_unregister(std::string(pimpl_->get_cname())); - } -} +simgrid::xbt::signal + Link::on_communication_state_change; Link* Link::by_name(std::string name) { @@ -52,10 +44,6 @@ const char* Link::get_cname() const { return this->pimpl_->get_cname(); } -const char* Link::name() -{ - return get_cname(); -} bool Link::is_used() { return this->pimpl_->is_used();