From 6226e9d8e953bacc80d3f6c46446b53e1f1df793 Mon Sep 17 00:00:00 2001 From: Daniel Jour Date: Tue, 19 Nov 2019 20:57:19 +0100 Subject: [PATCH] Keyframe::UpdatePoint() removed redundant code needs_update = true is set both by RemovePoint() and AddPoint(), ReorderPoints() is called by AddPoint(). --- src/KeyFrame.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/KeyFrame.cpp b/src/KeyFrame.cpp index c7aa9091..f8fb19c2 100644 --- a/src/KeyFrame.cpp +++ b/src/KeyFrame.cpp @@ -587,17 +587,11 @@ void Keyframe::RemovePoint(int64_t index) { } void Keyframe::UpdatePoint(int64_t index, Point p) { - // mark as dirty - needs_update = true; - // Remove matching point RemovePoint(index); // Add new point AddPoint(p); - - // Reorder points - ReorderPoints(); } void Keyframe::PrintPoints() {