From 9c2a6c6bfa618f65df392d353b55a2717372e875 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Mon, 20 Sep 2004 09:20:51 +0000 Subject: [PATCH] cleanups git-svn-id: http://svn.osgeo.org/postgis/trunk@840 b70326c6-7e19-0410-871a-916f4a2858ee --- lwgeom/lwgeom_api.c | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/lwgeom/lwgeom_api.c b/lwgeom/lwgeom_api.c index 3539c8d62..14787367a 100644 --- a/lwgeom/lwgeom_api.c +++ b/lwgeom/lwgeom_api.c @@ -579,7 +579,6 @@ POINT3D getPoint3d(POINTARRAY *pa, int n) void getPoint3d_p(POINTARRAY *pa, int n, char *point) { int size; - double bad=NO_Z_VALUE; POINT3D *op, *ip; op = (POINT3D *)point; @@ -608,37 +607,6 @@ void getPoint3d_p(POINTARRAY *pa, int n, char *point) if (pa->ndims >2) op->z = ip->z; else op->z = NO_Z_VALUE; return; - -#ifdef _KEEP_TRASH - // this does x,y - memcpy(point, - &pa->serialized_pointlist[size*n], - sizeof(double)*2 ); - -#ifdef DEBUG - elog(NOTICE, "getPoint3d_p: x/y copied"); -#endif - - if (pa->ndims >2) - { - memcpy(point+sizeof(double)*2, - &pa->serialized_pointlist[size*n + sizeof(double)*2], - sizeof(double) ); -#ifdef DEBUG - elog(NOTICE, "getPoint3d_p: z copied"); -#endif - } - else - { - memcpy(point+sizeof(double)*2, &bad, sizeof(double) ); - //point->z = NO_Z_VALUE; -#ifdef DEBUG - elog(NOTICE, "getPoint3d_p: z set to %f", NO_Z_VALUE); -#endif - } - -#endif // _KEEP_TRASH - } -- 2.40.0