Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[DOC] Fixed even more errors.
[simgrid.git] / src / surf / callbacks.cpp
index 78705cb..7af364a 100644 (file)
 #include "src/surf/surf_interface.hpp"
 #include "src/surf/host_interface.hpp"
 
-void surf_on_host_created(void (*callback)(sg_host_t))
-{
-  simgrid::surf::Host::creationCallbacks.connect([callback](simgrid::surf::Host* host) {
-    const char* id = host->getName();
-    sg_host_t h = sg_host_by_name(id);
-    xbt_assert(h != NULL, "Host not found for name %s", id);
-    callback(h);
-  });
-}
-
 void surf_on_storage_created(void (*callback)(sg_storage_t))
 {
   simgrid::surf::storageCreatedCallbacks.connect([callback](simgrid::surf::Storage* storage) {