]> granicus.if.org Git - postgis/commitdiff
Removed some unnecessary assert() calls
authorBborie Park <bkpark at ucdavis.edu>
Mon, 4 Feb 2013 19:07:16 +0000 (19:07 +0000)
committerBborie Park <bkpark at ucdavis.edu>
Mon, 4 Feb 2013 19:07:16 +0000 (19:07 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11077 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_pg/rt_pg.c

index 954dc19d7aa72ccbf34eb3cc8bb7406ad5cdd2cf..f5815821eab9fc4827bd6f9161021d7550d7db53 100644 (file)
@@ -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))