Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
more useless code trimmed
[simgrid.git] / src / simdag / sd_global.cpp
index 3119cfd..389d9f5 100644 (file)
@@ -171,21 +171,12 @@ void SD_create_environment(const char *platform_file)
 
   parse_platform_file(platform_file);
 
-  /* now let's create the SD wrappers for workstations, storages and links */
-  {
-    xbt_dict_cursor_t cursor = NULL;
-    simgrid_Host* host = NULL;
-    xbt_dict_foreach(host_list, cursor, name, host){
-       __SD_workstation_create((const char*)name);
-    }
-  }
-
+  /* now let's create the SD wrappers for storage elements */
   xbt_lib_foreach(storage_lib, cursor, name, surf_storage) {
-  if(surf_storage[SURF_STORAGE_LEVEL])
-    __SD_storage_create(surf_storage[SURF_STORAGE_LEVEL], NULL);
+    if(surf_storage[SURF_STORAGE_LEVEL])
+      __SD_storage_create(surf_storage[SURF_STORAGE_LEVEL], NULL);
   }
 
-
   XBT_DEBUG("Workstation number: %d, link number: %d",
          SD_workstation_get_count(), sg_link_count());
 #ifdef HAVE_JEDULE