Remove unnecessary shrink_to_fit

This commit is contained in:
Sterling Harper 2018-08-16 16:44:51 -04:00
parent f70cd29ded
commit 6cb9a06f5a
2 changed files with 0 additions and 3 deletions

View file

@ -250,7 +250,6 @@ Cell::Cell(pugi::xml_node cell_node)
material.push_back(std::stoi(mat));
}
}
material.shrink_to_fit();
} else {
std::stringstream err_msg;
err_msg << "An empty material element was specified for cell " << id;
@ -458,7 +457,6 @@ read_cells(pugi::xml_node* node)
for (pugi::xml_node cell_node: node->children("cell")) {
global_cells.push_back(new Cell(cell_node));
}
global_cells.shrink_to_fit();
// Populate the Universe vector and map.
for (int i = 0; i < global_cells.size(); i++) {

View file

@ -1083,7 +1083,6 @@ read_surfaces(pugi::xml_node* node)
}
}
}
global_surfaces.shrink_to_fit();
// Fill the surface map.
for (int i_surf = 0; i_surf < n_surfaces; i_surf++) {