Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[s4u] Remove Host::.set_userdata()
authorGabriel Corona <gabriel.corona@loria.fr>
Fri, 15 Jan 2016 12:25:55 +0000 (13:25 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Fri, 15 Jan 2016 12:27:55 +0000 (13:27 +0100)
include/simgrid/s4u/host.hpp

index 98ea998..5d5df15 100644 (file)
@@ -81,12 +81,6 @@ public:
   xbt_dict_t getMountedStorageList();
   xbt_dynar_t getAttachedStorageList();
 
-       /** Allows to store user data on that host */
-       // TODO, use the extension stuff instead
-       void set_userdata(void *data) {p_userdata = data;}
-       /** Retrieves the previously stored data */
-       void* userdata() {return p_userdata;}
-
        /** Get an associative list [mount point]->[Storage] off all local mount points.
         *
         *      This is defined in the platform file, and cannot be modified programatically (yet).
@@ -98,7 +92,6 @@ public:
 private:
        simgrid::xbt::string name_ = "noname";
        boost::unordered_map<std::string, Storage*> *mounts = NULL; // caching
-       void* p_userdata = NULL;
 
 public:
        // FIXME: these should be protected, but it leads to many errors