From 3b6e4bdd3a3fec1f4c08ecf192d9891a26a72594 Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Thu, 19 Mar 2026 10:32:46 -0400 Subject: [PATCH] fix(engine): remove dead unlimitedDrawings set, fix comment accuracy Co-Authored-By: Claude Opus 4.6 (1M context) --- OpenNest.Engine/Fill/IterativeShrinkFiller.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/OpenNest.Engine/Fill/IterativeShrinkFiller.cs b/OpenNest.Engine/Fill/IterativeShrinkFiller.cs index 46c6e6f..5822a4a 100644 --- a/OpenNest.Engine/Fill/IterativeShrinkFiller.cs +++ b/OpenNest.Engine/Fill/IterativeShrinkFiller.cs @@ -33,11 +33,10 @@ namespace OpenNest.Engine.Fill if (items == null || items.Count == 0) return new IterativeShrinkResult(); - // RemnantFiller.FillItems skips items with Quantity <= 0 (its localQty - // check treats them as "done"). Convert unlimited items to an estimated - // max capacity so they are actually processed. + // RemnantFiller.FillItems skips items with Quantity == 0 (its localQty + // check treats them as done). Convert unlimited items (Quantity <= 0) + // to an estimated max capacity so they are actually processed. var workItems = new List(items.Count); - var unlimitedDrawings = new HashSet(); foreach (var item in items) { @@ -48,7 +47,6 @@ namespace OpenNest.Engine.Fill ? (int)(workArea.Area() / bbox.Area()) * 2 : 1000; - unlimitedDrawings.Add(item.Drawing.Name); workItems.Add(new NestItem { Drawing = item.Drawing,