From ac0b9dcd4e0721124b77c8c66af0cbfaa217ffd7 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 22 Jul 2022 17:29:56 -0700 Subject: [PATCH] neatogen voronoi: remove unused 'triangulate' parameter --- lib/neatogen/adjust.c | 4 ++-- lib/neatogen/voronoi.c | 3 +-- lib/neatogen/voronoi.h | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/neatogen/adjust.c b/lib/neatogen/adjust.c index 18b822ba8..73497c979 100644 --- a/lib/neatogen/adjust.c +++ b/lib/neatogen/adjust.c @@ -516,7 +516,7 @@ static int vAdjust(void) rmEquality(); geomUpdate(0); - voronoi(0, nextOne); + voronoi(nextOne); while (1) { newPos(); iterCnt++; @@ -544,7 +544,7 @@ static int vAdjust(void) } geomUpdate(1); - voronoi(0, nextOne); + voronoi(nextOne); } if (Verbose) { diff --git a/lib/neatogen/voronoi.c b/lib/neatogen/voronoi.c index 311b4f478..86a1b14e1 100644 --- a/lib/neatogen/voronoi.c +++ b/lib/neatogen/voronoi.c @@ -16,8 +16,7 @@ #include -void voronoi(int triangulate, Site * (*nextsite) (void)) -{ +void voronoi(Site * (*nextsite) (void)) { Site *newsite, *bot, *top, *temp, *p; Site *v; Point newintstar = {0}; diff --git a/lib/neatogen/voronoi.h b/lib/neatogen/voronoi.h index 7ee78456d..cd9c4a59d 100644 --- a/lib/neatogen/voronoi.h +++ b/lib/neatogen/voronoi.h @@ -16,7 +16,7 @@ extern "C" { #include - extern void voronoi(int, Site * (*)(void)); + extern void voronoi(Site * (*)(void)); #ifdef __cplusplus } -- 2.40.0