]> granicus.if.org Git - graphviz/commitdiff
remove unused copypoly
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 6 Jun 2021 01:58:01 +0000 (18:58 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 9 Jun 2021 00:09:34 +0000 (17:09 -0700)
lib/pathplan/pathplan.def
lib/pathplan/pathutil.h
lib/pathplan/util.c

index a12a7f5d64b266951bfb7c7895ce4478c6d0cc6f..646c2af4877499e8cde10ecf5a7d9f0e2df27388 100644 (file)
@@ -3,7 +3,6 @@ LIBRARY "Pathplan"
 
 EXPORTS
 area2
-copypoly
 directVis
 dist2
 freepoly
index 4ed0573436a09a64a3f23e868f6f7b3de68c6bc8..f4afc0af358a649632f6ee34b2132ea682a9f13d 100644 (file)
@@ -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
index bb5a94a8125980486d4c208d7fd283cc88e39fc2..9a299ecc9df225a360708848b47a900809c65a0c 100644 (file)
 
 #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);