From: Frederic Suter Date: Tue, 17 Sep 2019 07:07:08 +0000 (+0200) Subject: Align Disk get/set_data() with the Extendable version of that feature X-Git-Tag: v3.24~74 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1a6da70ca45ee0e67731f333366c4c3a84543baa?hp=325a6bb78259a0e6835f69ca6fc2341dc620418d Align Disk get/set_data() with the Extendable version of that feature --- diff --git a/include/simgrid/s4u/Disk.hpp b/include/simgrid/s4u/Disk.hpp index 771509594c..6aa867a229 100644 --- a/include/simgrid/s4u/Disk.hpp +++ b/include/simgrid/s4u/Disk.hpp @@ -54,9 +54,6 @@ public: void set_property(const std::string&, const std::string& value); Host* get_host(); - void set_data(void* data) { userdata_ = data; } - void* get_data() { return userdata_; } - IoPtr io_init(sg_size_t size, s4u::Io::OpType type); IoPtr read_async(sg_size_t size); @@ -69,7 +66,6 @@ public: private: kernel::resource::DiskImpl* const pimpl_; std::string name_; - void* userdata_ = nullptr; }; } // namespace s4u