Dead code removal

This commit is contained in:
Shahram Najm 2023-06-27 15:53:02 +01:00
parent aecac9dd98
commit 5ab521e9e6
2 changed files with 3 additions and 18 deletions

View File

@ -203,17 +203,3 @@ static int pack_missing(grib_accessor* a)
return grib_pack_double(a, &value, &len);
return GRIB_VALUE_CANNOT_BE_MISSING;
}
/*
static int is_missing(grib_accessor* a){
size_t one = 1;
double value = GRIB_MISSING_DOUBLE;
if(a->flags & GRIB_ACCESSOR_FLAG_CAN_BE_MISSING)
{
int e=grib_unpack_double(a,&value,&one);
Assert(e == 0);
return value == GRIB_MISSING_DOUBLE;
}
return 0;
}
*/

View File

@ -140,15 +140,14 @@ static void dump(grib_accessor* a, grib_dumper* dumper)
grib_dump_long(dumper, a, NULL);
}
static int calculate_fcmonth(grib_accessor* a,
long verification_yearmonth, long base_date, long day, long hour, long* result)
static int calculate_fcmonth(grib_accessor* a, long verification_yearmonth, long base_date, long day, long hour, long* result)
{
long base_yearmonth = 0;
long base_yearmonth = 0;
long vyear = 0;
long vmonth = 0;
long byear = 0;
long bmonth = 0;
long fcmonth = 0;
long fcmonth = 0;
base_yearmonth = base_date / 100;