From: Daniel Baston Date: Sun, 22 Nov 2015 14:26:47 +0000 (+0000) Subject: remove inaccurate comments (the tests are always performed, and we're calculating... X-Git-Tag: 2.3.0beta1~370 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b40c62db5170b123d553a982c79ea3b714d02d4;p=postgis remove inaccurate comments (the tests are always performed, and we're calculating a box if we don't have one) git-svn-id: http://svn.osgeo.org/postgis/trunk@14416 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/lwgeom_geos.c b/postgis/lwgeom_geos.c index 576f91040..4194ac0ce 100644 --- a/postgis/lwgeom_geos.c +++ b/postgis/lwgeom_geos.c @@ -1946,7 +1946,6 @@ Datum overlaps(PG_FUNCTION_ARGS) /* * short-circuit 1: if geom2 bounding box does not overlap * geom1 bounding box we can prematurely return FALSE. - * Do the test IFF BOUNDING BOX AVAILABLE. */ if ( gserialized_get_gbox_p(geom1, &box1) && gserialized_get_gbox_p(geom2, &box2) ) @@ -2021,7 +2020,6 @@ Datum contains(PG_FUNCTION_ARGS) /* ** short-circuit 1: if geom2 bounding box is not completely inside ** geom1 bounding box we can prematurely return FALSE. - ** Do the test IFF BOUNDING BOX AVAILABLE. */ if ( gserialized_get_gbox_p(geom1, &box1) && gserialized_get_gbox_p(geom2, &box2) ) @@ -2156,7 +2154,6 @@ Datum containsproperly(PG_FUNCTION_ARGS) /* * short-circuit: if geom2 bounding box is not completely inside * geom1 bounding box we can prematurely return FALSE. - * Do the test IFF BOUNDING BOX AVAILABLE. */ if ( gserialized_get_gbox_p(geom1, &box1) && gserialized_get_gbox_p(geom2, &box2) ) @@ -2245,7 +2242,6 @@ Datum covers(PG_FUNCTION_ARGS) /* * short-circuit 1: if geom2 bounding box is not completely inside * geom1 bounding box we can prematurely return FALSE. - * Do the test IFF BOUNDING BOX AVAILABLE. */ if ( gserialized_get_gbox_p(geom1, &box1) && gserialized_get_gbox_p(geom2, &box2) ) @@ -2399,7 +2395,6 @@ Datum coveredby(PG_FUNCTION_ARGS) /* * short-circuit 1: if geom1 bounding box is not completely inside * geom2 bounding box we can prematurely return FALSE. - * Do the test IFF BOUNDING BOX AVAILABLE. */ if ( gserialized_get_gbox_p(geom1, &box1) && gserialized_get_gbox_p(geom2, &box2) ) @@ -2519,7 +2514,6 @@ Datum crosses(PG_FUNCTION_ARGS) /* * short-circuit 1: if geom2 bounding box does not overlap * geom1 bounding box we can prematurely return FALSE. - * Do the test IFF BOUNDING BOX AVAILABLE. */ if ( gserialized_get_gbox_p(geom1, &box1) && gserialized_get_gbox_p(geom2, &box2) ) @@ -2592,7 +2586,6 @@ Datum geos_intersects(PG_FUNCTION_ARGS) /* * short-circuit 1: if geom2 bounding box does not overlap * geom1 bounding box we can prematurely return FALSE. - * Do the test IFF BOUNDING BOX AVAILABLE. */ if ( gserialized_get_gbox_p(geom1, &box1) && gserialized_get_gbox_p(geom2, &box2) ) @@ -2749,7 +2742,6 @@ Datum touches(PG_FUNCTION_ARGS) /* * short-circuit 1: if geom2 bounding box does not overlap * geom1 bounding box we can prematurely return FALSE. - * Do the test IFF BOUNDING BOX AVAILABLE. */ if ( gserialized_get_gbox_p(geom1, &box1) && gserialized_get_gbox_p(geom2, &box2) ) @@ -2817,7 +2809,6 @@ Datum disjoint(PG_FUNCTION_ARGS) /* * short-circuit 1: if geom2 bounding box does not overlap * geom1 bounding box we can prematurely return TRUE. - * Do the test IFF BOUNDING BOX AVAILABLE. */ if ( gserialized_get_gbox_p(geom1, &box1) && gserialized_get_gbox_p(geom2, &box2) )