]> granicus.if.org Git - postgis/commitdiff
cleanups for waste left in previous patches
authorSandro Santilli <strk@keybit.net>
Fri, 9 Sep 2005 15:23:17 +0000 (15:23 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 9 Sep 2005 15:23:17 +0000 (15:23 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1903 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_functions_basic.c
lwgeom/lwgeom_ogc.c

index 0dcd19d510f2c511d61179ffc8441858aace5ca7..70d840b782483ff77b6786d457f231da2ed41c03 100644 (file)
@@ -1688,7 +1688,8 @@ Datum LWGEOM_translate(PG_FUNCTION_ARGS)
        lwgeom_translate_recursive(srl, xoff, yoff, zoff);
 
        /* COMPUTE_BBOX WHEN_SIMPLE */
-       if ( lwgeom_hasBBOX(geom->type) )
+       hasbbox = lwgeom_hasBBOX(geom->type);
+       if ( hasbbox )
        {
                getbox2d_p(srl, &box);
                box.xmin += xoff;
index 1b2fd7c6bf9ce3d7ed8e3186516283c5a8b782ba..87724eb21ff48c5fbbf8c140abbf150a044dc184 100644 (file)
@@ -356,7 +356,6 @@ Datum LWGEOM_exteriorring_polygon(PG_FUNCTION_ARGS)
        POINTARRAY *extring;
        LWLINE *line;
        PG_LWGEOM *result;
-       BOX2DFLOAT4 bbox, *bbox2=NULL;
 
        if ( TYPE_GETTYPE(geom->type) != POLYGONTYPE )
        {