From c55d8551c15b2f2c913627765476015d6343def1 Mon Sep 17 00:00:00 2001 From: eisneinechse <42617957+eisneinechse@users.noreply.github.com> Date: Sun, 5 May 2019 18:18:14 -0700 Subject: [PATCH] Simplification Further simplify the else branches. Thanks to SuslikV for pointing this out. --- src/KeyFrame.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/KeyFrame.cpp b/src/KeyFrame.cpp index d83adc7f..2b0389de 100644 --- a/src/KeyFrame.cpp +++ b/src/KeyFrame.cpp @@ -327,11 +327,7 @@ bool Keyframe::IsIncreasing(int index) } } - if (current_value < next_value) { - // Increasing - return true; - } - else if (current_value >= next_value) { + if (current_value >= next_value) { // Decreasing return false; }