Remove obsolete GRIB_WARNING part
@@ -165,13 +165,6 @@ static int unpack_long(grib_accessor* a, long* val, size_t *len)
long npoints=0,bitmap_present=0;
size_t size=0;
-#if GRIB_WARNING
- long numberOfCodedValues=0;
- long bpv=0;
- if((ret = grib_get_long_internal(grib_handle_of_accessor(a), self->bitsPerValue,&bpv)) != GRIB_SUCCESS)
- return ret;
-#endif
-
if((ret = grib_get_long_internal(grib_handle_of_accessor(a), self->numberOfPoints,&npoints)) != GRIB_SUCCESS)
return ret;
@@ -196,20 +189,5 @@ static int unpack_long(grib_accessor* a, long* val, size_t *len)
*val=npoints;
}
-#if GRIB_WARNING
- if ( bpv != 0 ) {
- if((ret = grib_get_long_internal(grib_handle_of_accessor(a), self->numberOfCodedValues,&numberOfCodedValues)) != GRIB_SUCCESS)
return ret;
- if (*val != numberOfCodedValues) {
- grib_context_log(a->context,GRIB_LOG_WARNING,
- "number of values from data section (%ld) doesn't match geography (%ld)",numberOfCodedValues,*val);
- /* *val=numberOfCodedValues; */
}
-
- }
-#endif
-
-
- return ret;
-}
-
