This commit is contained in:
Shahram Najm 2023-10-16 15:28:14 +01:00
parent 20ee601125
commit b077cdbb85
2 changed files with 1 additions and 23 deletions

View File

@ -178,13 +178,11 @@ static void init(grib_accessor* a, const long l, grib_arguments* c)
self->numberOfTimeRange = grib_arguments_get_name(h, c, n++);
}
static void dump(grib_accessor* a, grib_dumper* dumper)
{
grib_dump_double(dumper, a, NULL);
}
// See GRIB-488
static bool is_special_expver(const grib_handle* h)
{
@ -205,7 +203,6 @@ static bool is_special_expver(const grib_handle* h)
return false;
}
static int convert_time_range_long_(
grib_handle* h,
long stepUnits, /* step_units */
@ -227,7 +224,6 @@ static int convert_time_range_long_(
return GRIB_SUCCESS;
}
static int unpack_one_time_range_long_(grib_accessor* a, long* val, size_t* len)
{
grib_accessor_g2end_step* self = (grib_accessor_g2end_step*)a;
@ -273,7 +269,6 @@ static int unpack_one_time_range_long_(grib_accessor* a, long* val, size_t* len)
return GRIB_SUCCESS;
}
static int unpack_one_time_range_double_(grib_accessor* a, double *val , size_t* len)
{
grib_accessor_g2end_step* self = (grib_accessor_g2end_step*)a;
@ -322,7 +317,6 @@ static int unpack_one_time_range_double_(grib_accessor* a, double *val , size_t*
return GRIB_SUCCESS;
}
#define MAX_NUM_TIME_RANGES 16 /* maximum number of time range specifications */
static int unpack_multiple_time_ranges_long_(grib_accessor* a, long* val, size_t* len)
{
@ -377,8 +371,6 @@ static int unpack_multiple_time_ranges_long_(grib_accessor* a, long* val, size_t
return GRIB_DECODING_ERROR;
}
static int unpack_multiple_time_ranges_double_(grib_accessor* a, double* val, size_t* len)
{
grib_accessor_g2end_step* self = (grib_accessor_g2end_step*)a;
@ -439,7 +431,6 @@ static int unpack_multiple_time_ranges_double_(grib_accessor* a, double* val, si
return GRIB_DECODING_ERROR;
}
// For the old implementation of unpack_long, see
// src/deprecated/grib_accessor_class_g2end_step.unpack_long.cc
//
@ -477,7 +468,6 @@ static int unpack_long(grib_accessor* a, long* val, size_t* len)
return GRIB_SUCCESS;
}
static int unpack_double(grib_accessor* a, double* val, size_t* len)
{
grib_accessor_g2end_step* self = (grib_accessor_g2end_step*)a;
@ -512,8 +502,6 @@ static int unpack_double(grib_accessor* a, double* val, size_t* len)
return GRIB_SUCCESS;
}
static int pack_long_(grib_accessor* a, const long end_step_value, const long end_step_unit)
{
grib_accessor_g2end_step* self = (grib_accessor_g2end_step*)a;
@ -628,8 +616,6 @@ static int pack_long_(grib_accessor* a, const long end_step_value, const long en
return GRIB_SUCCESS;
}
static int unpack_string(grib_accessor* a, char* val, size_t* len)
{
grib_accessor_g2end_step* self = (grib_accessor_g2end_step*)a;
@ -667,7 +653,6 @@ static int unpack_string(grib_accessor* a, char* val, size_t* len)
return GRIB_SUCCESS;
}
static int pack_long(grib_accessor* a, const long* val, size_t* len)
{
grib_handle* h = grib_handle_of_accessor(a);
@ -692,7 +677,6 @@ static int pack_long(grib_accessor* a, const long* val, size_t* len)
return pack_long_(a, *val, end_step_unit);
}
static int pack_string(grib_accessor* a, const char* val, size_t* len)
{
grib_handle* h = grib_handle_of_accessor(a);

View File

@ -135,7 +135,6 @@ static void dump(grib_accessor* a, grib_dumper* dumper)
grib_dump_double(dumper, a, NULL);
}
static int unpack_long(grib_accessor* a, long* val, size_t* len)
{
grib_accessor_step_in_units* self = (grib_accessor_step_in_units*)a;
@ -161,8 +160,6 @@ static int unpack_long(grib_accessor* a, long* val, size_t* len)
return GRIB_SUCCESS;
}
static int unpack_double(grib_accessor* a, double * val, size_t* len)
{
grib_accessor_step_in_units* self = (grib_accessor_step_in_units*)a;
@ -187,8 +184,7 @@ static int unpack_double(grib_accessor* a, double * val, size_t* len)
return GRIB_SUCCESS;
}
int pack_long_new_(grib_accessor* a, const long start_step_value, const long start_step_unit) {
static int pack_long_new_(grib_accessor* a, const long start_step_value, const long start_step_unit) {
grib_accessor_step_in_units* self = (grib_accessor_step_in_units*)a;
grib_handle* h = grib_handle_of_accessor(a);
int err = 0;
@ -234,7 +230,6 @@ int pack_long_new_(grib_accessor* a, const long start_step_value, const long sta
return GRIB_SUCCESS;
}
static int pack_long(grib_accessor* a, const long* val, size_t* len)
{
grib_handle* h = grib_handle_of_accessor(a);
@ -261,7 +256,6 @@ static int pack_long(grib_accessor* a, const long* val, size_t* len)
return ret;
}
static int pack_string(grib_accessor* a, const char* val, size_t* len)
{
int ret = 0;