From cd04f97fd0f2e79867a146cf12f9979e140bf2b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Monta=C3=B1ana?= Date: Wed, 22 Feb 2023 11:55:31 +0100 Subject: [PATCH] Remove exception of valuecutpoint it's not needed --- CPPFImdlp.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/CPPFImdlp.cpp b/CPPFImdlp.cpp index b484199..1990f95 100644 --- a/CPPFImdlp.cpp +++ b/CPPFImdlp.cpp @@ -37,8 +37,6 @@ namespace mdlp { size_t idxNext = cut + 1 < end ? cut + 1 : cut; bool backWall; // true if duplicates reach begining of the interval precision_t previous, actual, next; - if (cut - 1 < start || cut + 1 >= end) - throw logic_error("Invalid cutpoint index"); previous = X[indices[idxPrev]]; actual = X[indices[cut]]; next = X[indices[idxNext]];