diff --git a/gtsam/nonlinear/ISAM2.cpp b/gtsam/nonlinear/ISAM2.cpp index f33c16fc1..c338290c4 100644 --- a/gtsam/nonlinear/ISAM2.cpp +++ b/gtsam/nonlinear/ISAM2.cpp @@ -688,8 +688,6 @@ ISAM2Result ISAM2::update( } } - // Use a set of Keys instead of a vector since we are merging key lists from - // different sources, so duplicates are automatically avoided. KeyVector observedKeys; for (Key index : markedKeys) { // Only add if not unused