From 3e0904e2508b34514e6dbe991750110680e73ecf Mon Sep 17 00:00:00 2001 From: cbeall3 Date: Sun, 23 Feb 2014 23:12:25 -0500 Subject: [PATCH] remove unneeded/wasteful loop --- gtsam_unstable/nonlinear/ConcurrentBatchFilter.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gtsam_unstable/nonlinear/ConcurrentBatchFilter.cpp b/gtsam_unstable/nonlinear/ConcurrentBatchFilter.cpp index 21ae50347..3bb9c7e44 100644 --- a/gtsam_unstable/nonlinear/ConcurrentBatchFilter.cpp +++ b/gtsam_unstable/nonlinear/ConcurrentBatchFilter.cpp @@ -537,9 +537,7 @@ void ConcurrentBatchFilter::moveSeparator(const FastList& keysToMove) { VariableIndex variableIndex(factors_); BOOST_FOREACH(Key key, keysToMove) { const FastList& 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& keysToMove) { } /* ************************************************************************* */ -}/// namespace gtsam \ No newline at end of file +}/// namespace gtsam