diff --git a/src/eccodes_prototypes.h b/src/eccodes_prototypes.h index c6e6e9e17..0771c2656 100644 --- a/src/eccodes_prototypes.h +++ b/src/eccodes_prototypes.h @@ -1162,8 +1162,6 @@ int grib_set_float_array(grib_handle* h, const char* name, const float* val, siz int grib_set_long_array_internal(grib_handle* h, const char* name, const long* val, size_t length); int grib_set_long_array(grib_handle* h, const char* name, const long* val, size_t length); int grib_get_long_internal(grib_handle* h, const char* name, long* val); -int grib_is_in_dump(const grib_handle* h, const char* name); -int grib_attributes_count(const grib_accessor* a, size_t* size); int grib_get_long(const grib_handle* h, const char* name, long* val); int grib_get_double_internal(grib_handle* h, const char* name, double* val); int grib_get_double(const grib_handle* h, const char* name, double* val); diff --git a/src/grib_value.cc b/src/grib_value.cc index cac46c01a..50cdca970 100644 --- a/src/grib_value.cc +++ b/src/grib_value.cc @@ -951,27 +951,26 @@ int grib_get_long_internal(grib_handle* h, const char* name, long* val) return ret; } -int grib_is_in_dump(const grib_handle* h, const char* name) -{ - const grib_accessor* a = grib_find_accessor(h, name); - if (a != NULL && (a->flags & GRIB_ACCESSOR_FLAG_DUMP)) - return 1; - else - return 0; -} +// int grib_is_in_dump(const grib_handle* h, const char* name) +// { +// const grib_accessor* a = grib_find_accessor(h, name); +// if (a != NULL && (a->flags & GRIB_ACCESSOR_FLAG_DUMP)) +// return 1; +// else +// return 0; +// } -int grib_attributes_count(const grib_accessor* a, size_t* size) -{ - if (a) { - *size = 0; - while (a->attributes[*size] != NULL) { - (*size)++; - } - return GRIB_SUCCESS; - } - - return GRIB_NOT_FOUND; -} +// int grib_attributes_count(const grib_accessor* a, size_t* size) +// { +// if (a) { +// *size = 0; +// while (a->attributes[*size] != NULL) { +// (*size)++; +// } +// return GRIB_SUCCESS; +// } +// return GRIB_NOT_FOUND; +// } int grib_get_long(const grib_handle* h, const char* name, long* val) {