From 4673952945879117f3fadc7b8864d88f303fccc7 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 1 May 2021 19:09:46 -0700 Subject: [PATCH] remove unused Pobsbarriers function --- lib/pathplan/cvt.c | 17 ----------------- lib/pathplan/pathplan.def | 1 - 2 files changed, 18 deletions(-) diff --git a/lib/pathplan/cvt.c b/lib/pathplan/cvt.c index 0e9e34801..4c17ccebb 100644 --- a/lib/pathplan/cvt.c +++ b/lib/pathplan/cvt.c @@ -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) { diff --git a/lib/pathplan/pathplan.def b/lib/pathplan/pathplan.def index bba0fa4f8..a12a7f5d6 100644 --- a/lib/pathplan/pathplan.def +++ b/lib/pathplan/pathplan.def @@ -12,7 +12,6 @@ in_poly intersect make_polyline makePath -Pobsbarriers Pobsclose Pobsopen Pobspath -- 2.40.0