From b680360622172c7a35f3691d98e840ce06d54de5 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 5 Jun 2021 19:28:47 -0700 Subject: [PATCH] make intersect static This function is not used outside of its containing file. --- lib/pathplan/pathplan.def | 1 - lib/pathplan/pathutil.h | 1 - lib/pathplan/visibility.c | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/pathplan/pathplan.def b/lib/pathplan/pathplan.def index 45417ce22..ca7922e83 100644 --- a/lib/pathplan/pathplan.def +++ b/lib/pathplan/pathplan.def @@ -7,7 +7,6 @@ directVis dist2 freePath in_poly -intersect make_polyline makePath Pobsclose diff --git a/lib/pathplan/pathutil.h b/lib/pathplan/pathutil.h index e04bb1d9a..5efb2db22 100644 --- a/lib/pathplan/pathutil.h +++ b/lib/pathplan/pathutil.h @@ -37,7 +37,6 @@ extern "C" { extern COORD area2(Ppoint_t, Ppoint_t, Ppoint_t); extern int wind(Ppoint_t a, Ppoint_t b, Ppoint_t c); extern COORD dist2(Ppoint_t, Ppoint_t); - extern int intersect(Ppoint_t a, Ppoint_t b, Ppoint_t c, Ppoint_t d); int in_poly(Ppoly_t argpoly, Ppoint_t q); diff --git a/lib/pathplan/visibility.c b/lib/pathplan/visibility.c index f1c1c18c7..8aec164aa 100644 --- a/lib/pathplan/visibility.c +++ b/lib/pathplan/visibility.c @@ -128,7 +128,7 @@ static int intersect1(Ppoint_t a, Ppoint_t b, Ppoint_t q, Ppoint_t n, * More specifically, returns true iff c or d lies on (a,b) or the two * segments intersect as open sets. */ -int intersect(Ppoint_t a, Ppoint_t b, Ppoint_t c, Ppoint_t d) +static int intersect(Ppoint_t a, Ppoint_t b, Ppoint_t c, Ppoint_t d) { int a_abc; int a_abd; -- 2.40.0