Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill an obsolete FIXME.
[simgrid.git] / src / instr / jedule / jedule_platform.cpp
index 703f856..e331627 100644 (file)
@@ -50,8 +50,6 @@ void Container::add_resources(std::vector<sg_host_t> hosts)
   this->children.clear();
   this->last_id_ = 0;
 
-  //FIXME do we need to sort?: xbt_dynar_sort_strings(host_names);
-
   for (auto const& host : hosts) {
     const char *host_name = sg_host_get_name(host);
     this->name2id.insert({host_name, this->last_id_});
@@ -176,8 +174,8 @@ static void add_subsets_to(std::vector<jed_subset_t> *subset_list, std::vector<c
 
   for (auto const& host_name : hostgroup) {
     xbt_assert( host_name != nullptr );
-    jed_container_t parent = host2_simgrid_parent_container.at(host_name);
-    unsigned int id = parent->name2id.at(host_name);
+    jed_container_t parent_cont = host2_simgrid_parent_container.at(host_name);
+    unsigned int id             = parent_cont->name2id.at(host_name);
     id_list.push_back(id);
   }
   unsigned int nb_ids = id_list.size();