From bbbd74e50b9eafbc614f69ebc5b0eda106d4050c Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Mon, 21 Aug 2023 17:34:27 +0100 Subject: [PATCH] Dead code removal: Unused functions --- src/eccodes_prototypes.h | 2 -- src/grib_bufr_descriptor.cc | 14 -------------- 2 files changed, 16 deletions(-) diff --git a/src/eccodes_prototypes.h b/src/eccodes_prototypes.h index e8a5134b2..5642a64db 100644 --- a/src/eccodes_prototypes.h +++ b/src/eccodes_prototypes.h @@ -183,8 +183,6 @@ void grib_hash_array_value_delete(grib_context* c, grib_hash_array_value* v); bufr_descriptor* grib_bufr_descriptor_new(grib_accessor* tables_accessor, int code, int silent, int* err); bufr_descriptor* grib_bufr_descriptor_clone(bufr_descriptor* d); int grib_bufr_descriptor_set_code(grib_accessor* tables_accessor, int code, bufr_descriptor* v); -void grib_bufr_descriptor_set_reference(bufr_descriptor* v, long reference); -void grib_bufr_descriptor_set_width(bufr_descriptor* v, long width); void grib_bufr_descriptor_set_scale(bufr_descriptor* v, long scale); int grib_bufr_descriptor_can_be_missing(bufr_descriptor* v); void grib_bufr_descriptor_delete(bufr_descriptor* v); diff --git a/src/grib_bufr_descriptor.cc b/src/grib_bufr_descriptor.cc index 68aa7e290..fa653bc29 100644 --- a/src/grib_bufr_descriptor.cc +++ b/src/grib_bufr_descriptor.cc @@ -89,20 +89,6 @@ int grib_bufr_descriptor_set_code(grib_accessor* tables_accessor, int code, bufr return err; } -void grib_bufr_descriptor_set_reference(bufr_descriptor* v, long reference) -{ - if (!v) - return; - v->reference = reference; -} - -void grib_bufr_descriptor_set_width(bufr_descriptor* v, long width) -{ - if (!v) - return; - v->width = width; -} - void grib_bufr_descriptor_set_scale(bufr_descriptor* v, long scale) { if (!v)