From: Matthew Fernandez Date: Sun, 6 Jun 2021 01:58:01 +0000 (-0700) Subject: remove unused copypoly X-Git-Tag: 2.47.3~9^2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8eab0282fe51df6d5fa576e7e69dae599a58d616;p=graphviz remove unused copypoly --- diff --git a/lib/pathplan/pathplan.def b/lib/pathplan/pathplan.def index a12a7f5d6..646c2af48 100644 --- a/lib/pathplan/pathplan.def +++ b/lib/pathplan/pathplan.def @@ -3,7 +3,6 @@ LIBRARY "Pathplan" EXPORTS area2 -copypoly directVis dist2 freepoly diff --git a/lib/pathplan/pathutil.h b/lib/pathplan/pathutil.h index 4ed057343..f4afc0af3 100644 --- a/lib/pathplan/pathutil.h +++ b/lib/pathplan/pathutil.h @@ -42,7 +42,6 @@ extern "C" { extern int intersect(Ppoint_t a, Ppoint_t b, Ppoint_t c, Ppoint_t d); int in_poly(Ppoly_t argpoly, Ppoint_t q); - Ppoly_t copypoly(Ppoly_t); void freepoly(Ppoly_t); #undef extern diff --git a/lib/pathplan/util.c b/lib/pathplan/util.c index bb5a94a81..9a299ecc9 100644 --- a/lib/pathplan/util.c +++ b/lib/pathplan/util.c @@ -15,18 +15,6 @@ #define ALLOC(size,ptr,type) realloc(ptr,(size)*sizeof(type)) -Ppoly_t copypoly(Ppoly_t argpoly) -{ - Ppoly_t rv; - int i; - - rv.pn = argpoly.pn; - rv.ps = malloc(sizeof(Ppoint_t) * argpoly.pn); - for (i = 0; i < argpoly.pn; i++) - rv.ps[i] = argpoly.ps[i]; - return rv; -} - void freePath(Ppolyline_t* p) { free(p->ps);