From 006ec5c742d317ef3e0964eb4d1860f07f43477a Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 19 Nov 2022 15:59:14 -0800 Subject: [PATCH] neatogen freeNodes: use clearer iteration idiom --- lib/neatogen/adjust.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/neatogen/adjust.c b/lib/neatogen/adjust.c index 029b39882..e8d2d3d52 100644 --- a/lib/neatogen/adjust.c +++ b/lib/neatogen/adjust.c @@ -74,11 +74,8 @@ static void setBoundBox(Point * ll, Point * ur) */ static void freeNodes(void) { - Info_t *ip = nodeInfo; - for (size_t i = 0; i < nsites; i++) { - breakPoly(&ip->poly); - ip++; + breakPoly(&nodeInfo[i].poly); } polyFree(); infoinit(); /* Free vertices */ -- 2.40.0