From 34de77307b0bad7000cce95a85273ce0f6ce8261 Mon Sep 17 00:00:00 2001
From: Philippe Verley <philippe.verley@ird.fr>
Date: Mon, 16 Jan 2023 15:39:14 +0100
Subject: [PATCH] Deleted unused function triangulate.c#is_point_inside_polygon

---
 src/triangulate.c | 31 -------------------------------
 src/triangulate.h |  1 -
 2 files changed, 32 deletions(-)

diff --git a/src/triangulate.c b/src/triangulate.c
index c197179..5529ce6 100755
--- a/src/triangulate.c
+++ b/src/triangulate.c
@@ -2035,34 +2035,3 @@ int triangulate_polygon(int ncontours, int cntr[], double **vertices, int **tria
 
   return 0;
 }
-
-
-/* This function returns TRUE or FALSE depending upon whether the
- * vertex is inside the polygon or not. The polygon must already have
- * been triangulated before this routine is called.
- * This routine will always detect all the points belonging to the
- * set (polygon-area - polygon-boundary). The return value for points
- * on the boundary is not consistent!!!
- */
-
-int is_point_inside_polygon(double vertex[2])
-{
-  point_t v;
-  int trnum, rseg;
-  trap_t *t;
-
-  v.x = vertex[0];
-  v.y = vertex[1];
-
-  trnum = locate_endpoint(&v, &v, 1);
-  t = &tr[trnum];
-
-  if (t->state == ST_INVALID)
-    return FALSE;
-
-  if ((t->lseg <= 0) || (t->rseg <= 0))
-    return FALSE;
-  rseg = t->rseg;
-  return _greater_than_equal_to(&seg[rseg].v1, &seg[rseg].v0);
-}
-
diff --git a/src/triangulate.h b/src/triangulate.h
index 16db077..3f0840c 100755
--- a/src/triangulate.h
+++ b/src/triangulate.h
@@ -144,7 +144,6 @@ extern segment_t seg[SEGSIZE];		/* Segment table */
 /* Functions */
 
 extern int triangulate_polygon(int, int *, double**,int**);
-extern int is_point_inside_polygon(double *);
 
 int triangulate_polygon(int, int [], double**, int**);
 
-- 
GitLab