[postgis-tickets] r17485 - Remove unused function gserialized_to_string

Paul Ramsey pramsey at cleverelephant.ca
Mon Jun 10 01:29:39 PDT 2019


Author: pramsey
Date: 2019-06-10 13:29:39 -0700 (Mon, 10 Jun 2019)
New Revision: 17485

Modified:
   trunk/liblwgeom/g_serialized.c
   trunk/liblwgeom/liblwgeom.h.in
Log:
Remove unused function gserialized_to_string


Modified: trunk/liblwgeom/g_serialized.c
===================================================================
--- trunk/liblwgeom/g_serialized.c	2019-06-10 20:25:59 UTC (rev 17484)
+++ trunk/liblwgeom/g_serialized.c	2019-06-10 20:29:39 UTC (rev 17485)
@@ -180,10 +180,6 @@
 	return isempty;
 }
 
-char* gserialized_to_string(const GSERIALIZED *g)
-{
-	return lwgeom_to_wkt(lwgeom_from_gserialized(g), WKT_ISO, 12, 0);
-}
 
 /* Unfortunately including advanced instructions is something that
 only helps a small sliver of users who can build their own

Modified: trunk/liblwgeom/liblwgeom.h.in
===================================================================
--- trunk/liblwgeom/liblwgeom.h.in	2019-06-10 20:25:59 UTC (rev 17484)
+++ trunk/liblwgeom/liblwgeom.h.in	2019-06-10 20:29:39 UTC (rev 17485)
@@ -1739,12 +1739,6 @@
 */
 
 /**
-* Return a WKT representation of the gserialized geometry.
-* Caller is responsible for disposing of the char*.
-*/
-extern char* gserialized_to_string(const GSERIALIZED *g);
-
-/**
 * Check that coordinates of LWGEOM are all within the geodetic range (-180, -90, 180, 90)
 */
 extern int lwgeom_check_geodetic(const LWGEOM *geom);



More information about the postgis-tickets mailing list