remove unneeded/wasteful loop

release/4.3a0
cbeall3 2014-02-23 23:12:25 -05:00
parent 687d05405a
commit 3e0904e250
1 changed files with 2 additions and 4 deletions

View File

@ -537,9 +537,7 @@ void ConcurrentBatchFilter::moveSeparator(const FastList<Key>& keysToMove) {
VariableIndex variableIndex(factors_);
BOOST_FOREACH(Key key, keysToMove) {
const FastList<size_t>& slots = variableIndex[key];
BOOST_FOREACH(size_t slot, slots) {
removedFactorSlots.insert(removedFactorSlots.end(), slots.begin(), slots.end());
}
removedFactorSlots.insert(removedFactorSlots.end(), slots.begin(), slots.end());
}
// Sort and remove duplicates
@ -658,4 +656,4 @@ void ConcurrentBatchFilter::moveSeparator(const FastList<Key>& keysToMove) {
}
/* ************************************************************************* */
}/// namespace gtsam
}/// namespace gtsam