]> granicus.if.org Git - postgis/commitdiff
removed useless memory copies in ndims(geom)
authorSandro Santilli <strk@keybit.net>
Thu, 30 Dec 2004 10:21:57 +0000 (10:21 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 30 Dec 2004 10:21:57 +0000 (10:21 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1188 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_functions_basic.c

index 81b4dc30907ba04c51ded3fef542a15bb22c82dc..49cd2a6eb509a6b1c58ec4fdf59b41bbcc2d3a74 100644 (file)
@@ -2370,7 +2370,7 @@ Datum LWGEOM_noop(PG_FUNCTION_ARGS)
        LWGEOM *lwgeom;
        size_t size, retsize;
 
-       in = (PG_LWGEOM *)PG_DETOAST_DATUM_COPY(PG_GETARG_DATUM(0));
+       in = (PG_LWGEOM *)PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
 
        lwgeom = lwgeom_deserialize(SERIALIZED_FORM(in));
 
@@ -2423,7 +2423,7 @@ Datum LWGEOM_ndims(PG_FUNCTION_ARGS)
        PG_LWGEOM *in;
        int ret;
 
-       in = (PG_LWGEOM *)PG_DETOAST_DATUM_COPY(PG_GETARG_DATUM(0));
+       in = (PG_LWGEOM *)PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
        ret = (TYPE_NDIMS(in->type));
        PG_RETURN_INT16(ret);
 }