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

lwgeom/lwgeom_functions_basic.c
lwgeom/lwgeom_ogc.c

index 69250849160eabea38ec287d3945d80c509142cf..cf794afb5cd1b2d485f8a65951a02c6d0bc558a0 100644 (file)
@@ -1500,7 +1500,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 a50a166e5d5fffbfe530fa0c917e516cb32b944e..fd81232d709b671d7aa4f3d2d217719aab962f8d 100644 (file)
@@ -354,7 +354,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 )
        {