]> granicus.if.org Git - graphviz/commitdiff
remove unused Pobsbarriers function
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 2 May 2021 02:09:46 +0000 (19:09 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 16 May 2021 16:40:28 +0000 (09:40 -0700)
lib/pathplan/cvt.c
lib/pathplan/pathplan.def

index 0e9e3480120ea37cfc55efd23fe3759a47117468..4c17ccebb1c5fab814b9664e2cb68c536d04bc6b 100644 (file)
@@ -146,23 +146,6 @@ int Pobspath(vconfig_t * config, Ppoint_t p0, int poly0, Ppoint_t p1,
     return TRUE;
 }
 
-int Pobsbarriers(vconfig_t * config, Pedge_t ** barriers, int *n_barriers)
-{
-    int i, j;
-
-    *barriers = malloc(config->N * sizeof(Pedge_t));
-    *n_barriers = config->N;
-
-    for (i = 0; i < config->N; i++) {
-       barriers[i]->a.x = config->P[i].x;
-       barriers[i]->a.y = config->P[i].y;
-       j = config->next[i];
-       barriers[i]->b.x = config->P[j].x;
-       barriers[i]->b.y = config->P[j].y;
-    }
-    return 1;
-}
-
 #ifdef DEBUG
 static void printVconfig(vconfig_t * cp)
 {
index bba0fa4f837f95cad7ea960f6fad072c81dfe9a9..a12a7f5d64b266951bfb7c7895ce4478c6d0cc6f 100644 (file)
@@ -12,7 +12,6 @@ in_poly
 intersect
 make_polyline
 makePath
-Pobsbarriers
 Pobsclose
 Pobsopen
 Pobspath