]> granicus.if.org Git - postgis/commitdiff
Remove unused point in poly function
authorPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 28 Sep 2012 22:51:06 +0000 (22:51 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 28 Sep 2012 22:51:06 +0000 (22:51 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@10343 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/liblwgeom.h.in
liblwgeom/measures.c

index 147d2da1f14d68fb4d5280dc50f211a873fcfcc4..20e5e864eca640e7858a1039de2be3fc4903fcb4 100644 (file)
@@ -1083,7 +1083,6 @@ extern double ptarray_length(const POINTARRAY *pts);
 
 
 extern int pt_in_ring_2d(const POINT2D *p, const POINTARRAY *ring);
-extern int pt_in_poly_2d(const POINT2D *p, const LWPOLY *poly);
 extern int azimuth_pt_pt(const POINT2D *p1, const POINT2D *p2, double *ret);
 extern int lwpoint_inside_circle(const LWPOINT *p, double cx, double cy, double rad);
 extern void lwgeom_reverse(LWGEOM *lwgeom);
index f42cf2eb0c74936005330e325e80fe4559d1e432..4bcd29fa56df639d65f1cb0f7c9d5981020c6a67 100644 (file)
@@ -1861,34 +1861,6 @@ End of Functions in common for Brute force and new calculation
 --------------------------------------------------------------------------------------------------------------*/
 
 
-/*Mixed functions*/
-
-
-/**
-
- true if point is in poly (and not in its holes)
- It's not used by postgis but since I don't know what else
- can be affectes in the world I don't dare removing it.
- */
-int
-pt_in_poly_2d(const POINT2D *p, const LWPOLY *poly)
-{
-       int i;
-
-       /* Not in outer ring */
-       if ( ! pt_in_ring_2d(p, poly->rings[0]) ) return 0;
-
-       /* Check holes */
-       for (i=1; i<poly->nrings; i++)
-       {
-               /* Inside a hole */
-               if ( pt_in_ring_2d(p, poly->rings[i]) ) return 0;
-       }
-
-       return 1; /* In outer ring, not in holes */
-}
-
-
 /**
 The old function nessecary for ptarray_segmentize2d in ptarray.c
 */