From 9a89de9286428715be98227e4fc89f7cd71e7ac8 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sat, 14 Sep 2019 23:00:43 +0200 Subject: [PATCH] Align Link get/set_data() with the Extendable version of that feature --- include/simgrid/s4u/Link.hpp | 3 --- src/s4u/s4u_Link.cpp | 9 --------- src/surf/network_interface.hpp | 3 --- 3 files changed, 15 deletions(-) diff --git a/include/simgrid/s4u/Link.hpp b/include/simgrid/s4u/Link.hpp index 3ef6ceef78..8d788edab5 100644 --- a/include/simgrid/s4u/Link.hpp +++ b/include/simgrid/s4u/Link.hpp @@ -64,9 +64,6 @@ public: bool is_on() const; void turn_off(); - void* get_data(); /** Should be used only from the C interface. Prefer extensions in C++ */ - void set_data(void* d); - #ifndef DOXYGEN XBT_ATTRIB_DEPRECATED_v325("Please use Link::set_state_profile()") void set_state_trace( kernel::profile::Profile* profile) diff --git a/src/s4u/s4u_Link.cpp b/src/s4u/s4u_Link.cpp index 4fecbd4590..bb48a1bb1f 100644 --- a/src/s4u/s4u_Link.cpp +++ b/src/s4u/s4u_Link.cpp @@ -83,15 +83,6 @@ bool Link::is_on() const return this->pimpl_->is_on(); } -void* Link::get_data() -{ - return this->pimpl_->get_data(); -} -void Link::set_data(void* d) -{ - simgrid::kernel::actor::simcall([this, d]() { this->pimpl_->set_data(d); }); -} - void Link::set_state_profile(kernel::profile::Profile* profile) { simgrid::kernel::actor::simcall([this, profile]() { this->pimpl_->set_state_profile(profile); }); diff --git a/src/surf/network_interface.hpp b/src/surf/network_interface.hpp index d112d2be2e..c473874005 100644 --- a/src/surf/network_interface.hpp +++ b/src/surf/network_interface.hpp @@ -109,7 +109,6 @@ public: */ class LinkImpl : public Resource, public surf::PropertyHolder { bool currently_destroying_ = false; - void* userdata_ = nullptr; protected: LinkImpl(NetworkModel* model, const std::string& name, lmm::Constraint* constraint); @@ -119,8 +118,6 @@ protected: public: void destroy(); // Must be called instead of the destructor - void* get_data() { return userdata_; } - void set_data(void* d) { userdata_ = d; } /** @brief Public interface */ s4u::Link piface_; -- 2.20.1