From: Matthew Fernandez Date: Sun, 6 Jun 2021 01:58:45 +0000 (-0700) Subject: remove unused freepoly X-Git-Tag: 2.47.3~9^2~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0abdbc22a8f36dbe303212e4563f3c5c2e57cd28;p=graphviz remove unused freepoly --- diff --git a/lib/pathplan/pathplan.def b/lib/pathplan/pathplan.def index 646c2af48..45417ce22 100644 --- a/lib/pathplan/pathplan.def +++ b/lib/pathplan/pathplan.def @@ -5,7 +5,6 @@ EXPORTS area2 directVis dist2 -freepoly freePath in_poly intersect diff --git a/lib/pathplan/pathutil.h b/lib/pathplan/pathutil.h index f4afc0af3..354be12c4 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); - void freepoly(Ppoly_t); #undef extern #ifdef __cplusplus diff --git a/lib/pathplan/util.c b/lib/pathplan/util.c index 9a299ecc9..446a19182 100644 --- a/lib/pathplan/util.c +++ b/lib/pathplan/util.c @@ -21,11 +21,6 @@ void freePath(Ppolyline_t* p) free(p); } -void freepoly(Ppoly_t argpoly) -{ - free(argpoly.ps); -} - int Ppolybarriers(Ppoly_t ** polys, int npolys, Pedge_t ** barriers, int *n_barriers) {