From: Bborie Park Date: Mon, 4 Feb 2013 19:07:16 +0000 (+0000) Subject: Removed some unnecessary assert() calls X-Git-Tag: 2.1.0beta2~223 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25c98c7898455993934243e2bfcf68021895e467;p=postgis Removed some unnecessary assert() calls git-svn-id: http://svn.osgeo.org/postgis/trunk@11077 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/raster/rt_pg/rt_pg.c b/raster/rt_pg/rt_pg.c index 954dc19d7..f5815821e 100644 --- a/raster/rt_pg/rt_pg.c +++ b/raster/rt_pg/rt_pg.c @@ -2169,8 +2169,6 @@ Datum RASTER_setBandNoDataValue(PG_FUNCTION_ARGS) } if (!skipset) { - assert(0 <= (bandindex - 1)); - /* Fetch requested band */ band = rt_raster_get_band(raster, bandindex - 1); if (!band) { @@ -8562,7 +8560,6 @@ Datum RASTER_quantile(PG_FUNCTION_ARGS) MemoryContextSwitchTo(oldcontext); SRF_RETURN_DONE(funcctx); } - assert(0 <= (bandindex - 1)); /* exclude_nodata_value flag */ if (!PG_ARGISNULL(2)) @@ -9241,7 +9238,6 @@ Datum RASTER_valueCount(PG_FUNCTION_ARGS) { MemoryContextSwitchTo(oldcontext); SRF_RETURN_DONE(funcctx); } - assert(0 <= (bandindex - 1)); /* exclude_nodata_value flag */ if (!PG_ARGISNULL(2))