Dead code removal: Unused functions

This commit is contained in:
Shahram Najm 2023-08-21 17:49:40 +01:00
parent c3a333e865
commit 47588fd277
2 changed files with 10 additions and 13 deletions

View File

@ -195,7 +195,6 @@ bufr_descriptors_array* grib_bufr_descriptors_array_append(bufr_descriptors_arra
bufr_descriptor* grib_bufr_descriptors_array_get(bufr_descriptors_array* a, size_t i); bufr_descriptor* grib_bufr_descriptors_array_get(bufr_descriptors_array* a, size_t i);
void grib_bufr_descriptors_array_delete(bufr_descriptors_array* v); void grib_bufr_descriptors_array_delete(bufr_descriptors_array* v);
void grib_bufr_descriptors_array_delete_array(bufr_descriptors_array* v); void grib_bufr_descriptors_array_delete_array(bufr_descriptors_array* v);
bufr_descriptor** grib_bufr_descriptors_array_get_array(bufr_descriptors_array* v);
size_t grib_bufr_descriptors_array_used_size(bufr_descriptors_array* v); size_t grib_bufr_descriptors_array_used_size(bufr_descriptors_array* v);
/* grib_darray.cc*/ /* grib_darray.cc*/

View File

@ -201,18 +201,16 @@ void grib_bufr_descriptors_array_delete_array(bufr_descriptors_array* v)
} }
} }
bufr_descriptor** grib_bufr_descriptors_array_get_array(bufr_descriptors_array* v) // bufr_descriptor** grib_bufr_descriptors_array_get_array(bufr_descriptors_array* v)
{ // {
bufr_descriptor** vv; // bufr_descriptor** vv;
size_t i; // size_t i;
grib_context* c = grib_context_get_default(); // grib_context* c = grib_context_get_default();
// vv = (bufr_descriptor**)grib_context_malloc_clear(c, sizeof(bufr_descriptor*) * v->n);
vv = (bufr_descriptor**)grib_context_malloc_clear(c, sizeof(bufr_descriptor*) * v->n); // for (i = 0; i < v->n; i++)
for (i = 0; i < v->n; i++) // vv[i] = grib_bufr_descriptor_clone(v->v[i]);
vv[i] = grib_bufr_descriptor_clone(v->v[i]); // return vv;
// }
return vv;
}
size_t grib_bufr_descriptors_array_used_size(bufr_descriptors_array* v) size_t grib_bufr_descriptors_array_used_size(bufr_descriptors_array* v)
{ {