X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5af8a8f19bfb5554ab98db4e8feed057d3b49e7c..b197602d9f391f0020949e793fd191bb722af74a:/src/simgrid/host.cpp diff --git a/src/simgrid/host.cpp b/src/simgrid/host.cpp index f2d53f3b65..c4c9f2042b 100644 --- a/src/simgrid/host.cpp +++ b/src/simgrid/host.cpp @@ -135,12 +135,6 @@ surf_cpu_t sg_host_surfcpu(sg_host_t host) { void sg_host_surfcpu_set(sg_host_t host, surf_cpu_t cpu) { host->set_facet(simgrid::surf::Cpu::LEVEL, cpu); } -void sg_host_surfcpu_register(sg_host_t host, surf_cpu_t cpu) -{ - surf_callback_emit(simgrid::surf::cpuCreatedCallbacks, cpu); - surf_callback_emit(simgrid::surf::cpuStateChangedCallbacks, cpu, SURF_RESOURCE_ON, cpu->getState()); - sg_host_surfcpu_set(host, cpu); -} void sg_host_surfcpu_destroy(sg_host_t host) { host->set_facet(nullptr); }