X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/638b21d2071c77f39da2f322156f05f75bf91517..53dd673a07059d04f7ee5c280470958856fdf8d8:/src/surf/callbacks.cpp diff --git a/src/surf/callbacks.cpp b/src/surf/callbacks.cpp index 22b2bc4144..7af364a0fc 100644 --- a/src/surf/callbacks.cpp +++ b/src/surf/callbacks.cpp @@ -10,16 +10,6 @@ #include "src/surf/surf_interface.hpp" #include "src/surf/host_interface.hpp" -void surf_on_host_created(void (*callback)(sg_host_t)) -{ - simgrid::surf::hostCreatedCallbacks.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) {