Skip to content

Commit

Permalink
Revert "Refs #10370 Reserve memory again in LoadMD."
Browse files Browse the repository at this point in the history
This reverts commit c63a2a2. Instead of this we can still allow reserve to be called in loadAndAddFrom method in MDBox.
  • Loading branch information
ianbush committed Oct 17, 2014
1 parent c63a2a2 commit ec902c6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Code/Mantid/Framework/MDAlgorithms/src/LoadMD.cpp
Expand Up @@ -366,10 +366,7 @@ namespace Mantid
if(!box)continue;

if(BoxEventIndex[2*i+1]>0) // Load in memory NOT using the file as the back-end,
{
boxTree[i]->reserveMemoryForLoad(BoxEventIndex[2*i+1]);
boxTree[i]->loadAndAddFrom(loader.get(),BoxEventIndex[2*i],static_cast<size_t>(BoxEventIndex[2*i+1]));
}

}
loader->closeFile();
Expand Down

0 comments on commit ec902c6

Please sign in to comment.