]> granicus.if.org Git - postgis/commitdiff
lwtriangle_is_repeated_points should be local to lwtriangle.c
authorPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 5 Oct 2017 13:35:38 +0000 (13:35 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 5 Oct 2017 13:35:38 +0000 (13:35 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@15904 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/liblwgeom.h.in
liblwgeom/lwtriangle.c

index ea73ef00dbd86850c035a546f91af06266b00ef1..76d88c192e8af03c1921050c95eddb883b1c2098 100644 (file)
@@ -1658,8 +1658,6 @@ extern LWBOUNDINGCIRCLE* lwgeom_calculate_mbc(const LWGEOM* g);
 */
 extern LWGEOM* lwgeom_remove_repeated_points(const LWGEOM *in, double tolerance);
 
-extern char lwtriangle_is_repeated_points(LWTRIANGLE *triangle);
-
 /**
  * Swap ordinate values in every vertex of the geometry.
  *
index aa88c6a58e96fe626de10f90db1562038515285b..a5916c8bfe76970db536296d02380d02b769604d 100644 (file)
@@ -130,6 +130,19 @@ lwtriangle_same(const LWTRIANGLE *t1, const LWTRIANGLE *t2)
        return r;
 }
 
+static char
+lwtriangle_is_repeated_points(LWTRIANGLE *triangle)
+{
+       char ret;
+       POINTARRAY *pa;
+
+       pa = ptarray_remove_repeated_points(triangle->points, 0.0);
+       ret = ptarray_same(pa, triangle->points);
+       ptarray_free(pa);
+
+       return ret;
+}
+
 /*
  * Construct a triangle from a LWLINE being
  * the shell
@@ -158,19 +171,6 @@ lwtriangle_from_lwline(const LWLINE *shell)
        return ret;
 }
 
-char
-lwtriangle_is_repeated_points(LWTRIANGLE *triangle)
-{
-       char ret;
-       POINTARRAY *pa;
-
-       pa = ptarray_remove_repeated_points(triangle->points, 0.0);
-       ret = ptarray_same(pa, triangle->points);
-       ptarray_free(pa);
-
-       return ret;
-}
-
 int lwtriangle_is_empty(const LWTRIANGLE *triangle)
 {
        if ( !triangle->points || triangle->points->npoints < 1 )