mirror of https://github.com/ecmwf/eccodes.git
Dead code removal: Unused functions
This commit is contained in:
parent
c3a333e865
commit
47588fd277
|
@ -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);
|
||||
void grib_bufr_descriptors_array_delete(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);
|
||||
|
||||
/* grib_darray.cc*/
|
||||
|
|
|
@ -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** vv;
|
||||
size_t i;
|
||||
grib_context* c = grib_context_get_default();
|
||||
|
||||
vv = (bufr_descriptor**)grib_context_malloc_clear(c, sizeof(bufr_descriptor*) * v->n);
|
||||
for (i = 0; i < v->n; i++)
|
||||
vv[i] = grib_bufr_descriptor_clone(v->v[i]);
|
||||
|
||||
return vv;
|
||||
}
|
||||
// bufr_descriptor** grib_bufr_descriptors_array_get_array(bufr_descriptors_array* v)
|
||||
// {
|
||||
// bufr_descriptor** vv;
|
||||
// size_t i;
|
||||
// grib_context* c = grib_context_get_default();
|
||||
// vv = (bufr_descriptor**)grib_context_malloc_clear(c, sizeof(bufr_descriptor*) * v->n);
|
||||
// for (i = 0; i < v->n; i++)
|
||||
// vv[i] = grib_bufr_descriptor_clone(v->v[i]);
|
||||
// return vv;
|
||||
// }
|
||||
|
||||
size_t grib_bufr_descriptors_array_used_size(bufr_descriptors_array* v)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue