Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
continue removing content from HostImpl
[simgrid.git] / src / surf / sg_platf.cpp
index 9294509..c002ec7 100644 (file)
@@ -111,8 +111,7 @@ void sg_platf_new_host(sg_platf_host_cbarg_t host)
   if (host->speed_trace)
     cpu->setSpeedTrace(host->speed_trace);
 
-  simgrid::surf::HostImpl* hi = new simgrid::surf::HostImpl(surf_host_model, host->id, mount_list);
-  hi->attach(h);
+  new simgrid::surf::HostImpl(h, mount_list);
   xbt_lib_set(storage_lib, host->id, ROUTING_STORAGE_HOST_LEVEL, (void*)mount_list);
 
   mount_list = nullptr;