[postgis-tickets] r17484 - Remove unused function gserialized_copy

Paul Ramsey pramsey at cleverelephant.ca
Mon Jun 10 01:25:59 PDT 2019


Author: pramsey
Date: 2019-06-10 13:25:59 -0700 (Mon, 10 Jun 2019)
New Revision: 17484

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


Modified: trunk/liblwgeom/g_serialized.c
===================================================================
--- trunk/liblwgeom/g_serialized.c	2019-06-10 20:23:20 UTC (rev 17483)
+++ trunk/liblwgeom/g_serialized.c	2019-06-10 20:25:59 UTC (rev 17484)
@@ -138,15 +138,6 @@
 	) ? 0 : 1;
 }
 
-GSERIALIZED* gserialized_copy(const GSERIALIZED *g)
-{
-	GSERIALIZED *g_out = NULL;
-	assert(g);
-	g_out = (GSERIALIZED*)lwalloc(SIZE_GET(g->size));
-	memcpy((uint8_t*)g_out,(uint8_t*)g,SIZE_GET(g->size));
-	return g_out;
-}
-
 static size_t gserialized_is_empty_recurse(const uint8_t *p, int *isempty);
 static size_t gserialized_is_empty_recurse(const uint8_t *p, int *isempty)
 {

Modified: trunk/liblwgeom/liblwgeom.h.in
===================================================================
--- trunk/liblwgeom/liblwgeom.h.in	2019-06-10 20:23:20 UTC (rev 17483)
+++ trunk/liblwgeom/liblwgeom.h.in	2019-06-10 20:25:59 UTC (rev 17484)
@@ -1745,11 +1745,6 @@
 extern char* gserialized_to_string(const GSERIALIZED *g);
 
 /**
-* Return a copy of the input serialized geometry.
-*/
-extern GSERIALIZED* gserialized_copy(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