From: Martin Quinson Date: Sat, 14 Sep 2019 20:53:03 +0000 (+0200) Subject: Align Storage get/set_data() with the Extendable version of that feature X-Git-Tag: v3.24~69^2~11 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/08997758a5a6a05bea8653e21f7603001f1cc218 Align Storage get/set_data() with the Extendable version of that feature That was easy. --- diff --git a/include/simgrid/s4u/Storage.hpp b/include/simgrid/s4u/Storage.hpp index 9bfa5add00..3099a47242 100644 --- a/include/simgrid/s4u/Storage.hpp +++ b/include/simgrid/s4u/Storage.hpp @@ -60,9 +60,6 @@ public: const char* get_property(const std::string& key) const; void set_property(const std::string&, const std::string& value); - 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); @@ -76,7 +73,6 @@ private: Host* attached_to_ = nullptr; kernel::resource::StorageImpl* const pimpl_; std::string name_; - void* userdata_ = nullptr; }; } // namespace s4u