mirror of https://github.com/ecmwf/eccodes.git
ECC-1427: clean up
This commit is contained in:
parent
0f098d5df2
commit
ed56dd3efe
|
@ -224,7 +224,6 @@ static int unpack_double(grib_accessor* a, double* val, size_t* len)
|
|||
size_t n_vals = 0;
|
||||
size_t size = 0;
|
||||
unsigned char* decoded = NULL;
|
||||
unsigned char* p = NULL;
|
||||
long pos = 0;
|
||||
long nn = 0;
|
||||
|
||||
|
@ -310,8 +309,8 @@ static int unpack_double(grib_accessor* a, double* val, size_t* len)
|
|||
|
||||
/* printf("bscale=%g dscale=%g reference_value=%g\n",bscale,dscale,reference_value); */
|
||||
pos = 0;
|
||||
p = decoded;
|
||||
#if 0
|
||||
p = decoded;
|
||||
for (i = 0; i < n_vals; i++) {
|
||||
val[i] = (double)(((grib_decode_unsigned_long(p, &pos, bits8) * bscale) + reference_value) * dscale);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue