From 25c98c7898455993934243e2bfcf68021895e467 Mon Sep 17 00:00:00 2001 From: Bborie Park Date: Mon, 4 Feb 2013 19:07:16 +0000 Subject: [PATCH] Removed some unnecessary assert() calls git-svn-id: http://svn.osgeo.org/postgis/trunk@11077 b70326c6-7e19-0410-871a-916f4a2858ee --- raster/rt_pg/rt_pg.c | 4 ---- 1 file changed, 4 deletions(-) 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)) -- 2.50.1