Dead code removal

This commit is contained in:
Shahram Najm 2024-01-05 16:53:52 +00:00
parent 8709a6d32d
commit aca931a801
2 changed files with 19 additions and 22 deletions

View File

@ -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_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_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_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_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_internal(grib_handle* h, const char* name, double* val);
int grib_get_double(const grib_handle* h, const char* name, double* val); int grib_get_double(const grib_handle* h, const char* name, double* val);

View File

@ -951,27 +951,26 @@ int grib_get_long_internal(grib_handle* h, const char* name, long* val)
return ret; return ret;
} }
int grib_is_in_dump(const grib_handle* h, const char* name) // int grib_is_in_dump(const grib_handle* h, const char* name)
{ // {
const grib_accessor* a = grib_find_accessor(h, name); // const grib_accessor* a = grib_find_accessor(h, name);
if (a != NULL && (a->flags & GRIB_ACCESSOR_FLAG_DUMP)) // if (a != NULL && (a->flags & GRIB_ACCESSOR_FLAG_DUMP))
return 1; // return 1;
else // else
return 0; // return 0;
} // }
int grib_attributes_count(const grib_accessor* a, size_t* size) // int grib_attributes_count(const grib_accessor* a, size_t* size)
{ // {
if (a) { // if (a) {
*size = 0; // *size = 0;
while (a->attributes[*size] != NULL) { // while (a->attributes[*size] != NULL) {
(*size)++; // (*size)++;
} // }
return GRIB_SUCCESS; // return GRIB_SUCCESS;
} // }
// return GRIB_NOT_FOUND;
return GRIB_NOT_FOUND; // }
}
int grib_get_long(const grib_handle* h, const char* name, long* val) int grib_get_long(const grib_handle* h, const char* name, long* val)
{ {