From 11ea6745c3d411d233c2b9bd9859ec9a557ea636 Mon Sep 17 00:00:00 2001 From: shahramn Date: Sun, 18 Aug 2024 11:37:45 +0100 Subject: [PATCH] Dead code removal --- src/accessor/grib_accessor_class_abstract_long_vector.h | 2 +- src/accessor/grib_accessor_class_abstract_vector.h | 2 +- src/accessor/grib_accessor_class_bitmap.h | 2 +- src/accessor/grib_accessor_class_data_complex_packing.h | 2 +- src/accessor/grib_accessor_class_data_secondary_bitmap.h | 2 +- src/accessor/grib_accessor_class_data_shsimple_packing.h | 2 +- src/accessor/grib_accessor_class_data_simple_packing.h | 2 +- src/accessor/grib_accessor_class_double.h | 2 +- src/accessor/grib_accessor_class_padding.h | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/accessor/grib_accessor_class_abstract_long_vector.h b/src/accessor/grib_accessor_class_abstract_long_vector.h index 94ed9d636..a4d1ae4c0 100644 --- a/src/accessor/grib_accessor_class_abstract_long_vector.h +++ b/src/accessor/grib_accessor_class_abstract_long_vector.h @@ -26,5 +26,5 @@ class grib_accessor_class_abstract_long_vector_t : public grib_accessor_class_ge { public: grib_accessor_class_abstract_long_vector_t(const char* name) : grib_accessor_class_gen_t(name) {} - grib_accessor* create_empty_accessor() override { return new grib_accessor_abstract_long_vector_t{}; } + //grib_accessor* create_empty_accessor() override { return new grib_accessor_abstract_long_vector_t{}; } }; diff --git a/src/accessor/grib_accessor_class_abstract_vector.h b/src/accessor/grib_accessor_class_abstract_vector.h index b721a3adb..b58291db8 100644 --- a/src/accessor/grib_accessor_class_abstract_vector.h +++ b/src/accessor/grib_accessor_class_abstract_vector.h @@ -25,5 +25,5 @@ class grib_accessor_class_abstract_vector_t : public grib_accessor_class_double_ { public: grib_accessor_class_abstract_vector_t(const char* name) : grib_accessor_class_double_t(name) {} - grib_accessor* create_empty_accessor() override { return new grib_accessor_abstract_vector_t{}; } + // grib_accessor* create_empty_accessor() override { return new grib_accessor_abstract_vector_t{}; } }; diff --git a/src/accessor/grib_accessor_class_bitmap.h b/src/accessor/grib_accessor_class_bitmap.h index 4f07f3a6c..b0e480bf2 100644 --- a/src/accessor/grib_accessor_class_bitmap.h +++ b/src/accessor/grib_accessor_class_bitmap.h @@ -27,7 +27,7 @@ class grib_accessor_class_bitmap_t : public grib_accessor_class_bytes_t { public: grib_accessor_class_bitmap_t(const char* name) : grib_accessor_class_bytes_t(name) {} - grib_accessor* create_empty_accessor() override { return new grib_accessor_bitmap_t{}; } + //grib_accessor* create_empty_accessor() override { return new grib_accessor_bitmap_t{}; } int unpack_double(grib_accessor*, double* val, size_t* len) override; int unpack_float(grib_accessor*, float* val, size_t* len) override; int unpack_long(grib_accessor*, long* val, size_t* len) override; diff --git a/src/accessor/grib_accessor_class_data_complex_packing.h b/src/accessor/grib_accessor_class_data_complex_packing.h index ee19b195c..a809336c2 100644 --- a/src/accessor/grib_accessor_class_data_complex_packing.h +++ b/src/accessor/grib_accessor_class_data_complex_packing.h @@ -37,7 +37,7 @@ class grib_accessor_class_data_complex_packing_t : public grib_accessor_class_da { public: grib_accessor_class_data_complex_packing_t(const char* name) : grib_accessor_class_data_simple_packing_t(name) {} - grib_accessor* create_empty_accessor() override { return new grib_accessor_data_complex_packing_t{}; } + // grib_accessor* create_empty_accessor() override { return new grib_accessor_data_complex_packing_t{}; } int pack_double(grib_accessor*, const double* val, size_t* len) override; int unpack_double(grib_accessor*, double* val, size_t* len) override; int unpack_float(grib_accessor*, float* val, size_t* len) override; diff --git a/src/accessor/grib_accessor_class_data_secondary_bitmap.h b/src/accessor/grib_accessor_class_data_secondary_bitmap.h index a24772be4..2b7bccdbc 100644 --- a/src/accessor/grib_accessor_class_data_secondary_bitmap.h +++ b/src/accessor/grib_accessor_class_data_secondary_bitmap.h @@ -26,7 +26,7 @@ class grib_accessor_class_data_secondary_bitmap_t : public grib_accessor_class_g { public: grib_accessor_class_data_secondary_bitmap_t(const char* name) : grib_accessor_class_gen_t(name) {} - grib_accessor* create_empty_accessor() override { return new grib_accessor_data_secondary_bitmap_t{}; } + // grib_accessor* create_empty_accessor() override { return new grib_accessor_data_secondary_bitmap_t{}; } int get_native_type(grib_accessor*) override; int unpack_double(grib_accessor*, double* val, size_t* len) override; void dump(grib_accessor*, grib_dumper*) override; diff --git a/src/accessor/grib_accessor_class_data_shsimple_packing.h b/src/accessor/grib_accessor_class_data_shsimple_packing.h index 7b1620141..1c5b909e5 100644 --- a/src/accessor/grib_accessor_class_data_shsimple_packing.h +++ b/src/accessor/grib_accessor_class_data_shsimple_packing.h @@ -25,7 +25,7 @@ class grib_accessor_class_data_shsimple_packing_t : public grib_accessor_class_g { public: grib_accessor_class_data_shsimple_packing_t(const char* name) : grib_accessor_class_gen_t(name) {} - grib_accessor* create_empty_accessor() override { return new grib_accessor_data_shsimple_packing_t{}; } + // grib_accessor* create_empty_accessor() override { return new grib_accessor_data_shsimple_packing_t{}; } int get_native_type(grib_accessor*) override; int pack_double(grib_accessor*, const double* val, size_t* len) override; void dump(grib_accessor*, grib_dumper*) override; diff --git a/src/accessor/grib_accessor_class_data_simple_packing.h b/src/accessor/grib_accessor_class_data_simple_packing.h index 3e50239a0..e1c9da33c 100644 --- a/src/accessor/grib_accessor_class_data_simple_packing.h +++ b/src/accessor/grib_accessor_class_data_simple_packing.h @@ -33,7 +33,7 @@ class grib_accessor_class_data_simple_packing_t : public grib_accessor_class_val { public: grib_accessor_class_data_simple_packing_t(const char* name) : grib_accessor_class_values_t(name) {} - grib_accessor* create_empty_accessor() override { return new grib_accessor_data_simple_packing_t{}; } + // grib_accessor* create_empty_accessor() override { return new grib_accessor_data_simple_packing_t{}; } int pack_double(grib_accessor*, const double* val, size_t* len) override; int unpack_double(grib_accessor*, double* val, size_t* len) override; int unpack_float(grib_accessor*, float* val, size_t* len) override; diff --git a/src/accessor/grib_accessor_class_double.h b/src/accessor/grib_accessor_class_double.h index 7ad9771c2..3bc0ffdcd 100644 --- a/src/accessor/grib_accessor_class_double.h +++ b/src/accessor/grib_accessor_class_double.h @@ -18,7 +18,7 @@ class grib_accessor_class_double_t : public grib_accessor_class_gen_t { public: grib_accessor_class_double_t(const char* name) : grib_accessor_class_gen_t(name) {} - grib_accessor* create_empty_accessor() override { return new grib_accessor_double_t{}; } + //grib_accessor* create_empty_accessor() override { return new grib_accessor_double_t{}; } int get_native_type(grib_accessor*) override; int pack_missing(grib_accessor*) override; int unpack_string(grib_accessor*, char*, size_t* len) override; diff --git a/src/accessor/grib_accessor_class_padding.h b/src/accessor/grib_accessor_class_padding.h index 6d4175de3..aeda21f09 100644 --- a/src/accessor/grib_accessor_class_padding.h +++ b/src/accessor/grib_accessor_class_padding.h @@ -23,7 +23,7 @@ class grib_accessor_class_padding_t : public grib_accessor_class_bytes_t { public: grib_accessor_class_padding_t(const char* name) : grib_accessor_class_bytes_t(name) {} - grib_accessor* create_empty_accessor() override { return new grib_accessor_padding_t{}; } + //grib_accessor* create_empty_accessor() override { return new grib_accessor_padding_t{}; } size_t string_length(grib_accessor*) override; long byte_count(grib_accessor*) override; int value_count(grib_accessor*, long*) override;