From 48174d13960f1ac828c03aba1c4d3e45ccc5ebf7 Mon Sep 17 00:00:00 2001 From: Luc Patiny Date: Mon, 15 Sep 2025 13:14:15 +0200 Subject: [PATCH] chore: remove useless code --- src/xyObject/xyObjectBestPoints.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/xyObject/xyObjectBestPoints.ts b/src/xyObject/xyObjectBestPoints.ts index 9ea4c4c8..ce34b28a 100644 --- a/src/xyObject/xyObjectBestPoints.ts +++ b/src/xyObject/xyObjectBestPoints.ts @@ -66,13 +66,10 @@ export function xyObjectBestPoints( .map((point) => { return { point, - monoisotopic: false, }; }); selected.sort((a, b) => { - if (a.monoisotopic && !b.monoisotopic) return -1; - if (b.monoisotopic && !a.monoisotopic) return 1; return b.point.y - a.point.y; }); @@ -81,11 +78,7 @@ export function xyObjectBestPoints( const minY = selected[0].point.y * threshold; peakLoop: for (const item of selected) { if (item.point.y < minY) { - if (item.monoisotopic) { - continue; - } else { - break; - } + break; } let close = false; for (const existing of toReturn) {