Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Align Storage get/set_data() with the Extendable version of that feature
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Sat, 14 Sep 2019 20:53:03 +0000 (22:53 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Sat, 14 Sep 2019 20:53:14 +0000 (22:53 +0200)
That was easy.

include/simgrid/s4u/Storage.hpp

index 9bfa5ad..3099a47 100644 (file)
@@ -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