From 3a122d8fc20917e846d1c8d53825bc22a5a339d3 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Sat, 12 Aug 2023 23:43:27 +0100 Subject: [PATCH] Dead code removal: sh nearest --- src/CMakeLists.txt | 1 - src/{ => deprecated}/grib_nearest_class_sh.cc | 0 src/eccodes_prototypes.h | 2 -- src/grib_nearest_class.h | 1 - src/grib_nearest_factory.h | 1 - 5 files changed, 5 deletions(-) rename src/{ => deprecated}/grib_nearest_class_sh.cc (100%) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c7161ad97..78aaa903d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -323,7 +323,6 @@ list( APPEND eccodes_src_files grib_nearest_class_regular.cc grib_nearest_class_reduced.cc grib_nearest_class_latlon_reduced.cc - grib_nearest_class_sh.cc grib_nearest_class_lambert_conformal.cc grib_nearest_class_lambert_azimuthal_equal_area.cc grib_nearest_class_mercator.cc diff --git a/src/grib_nearest_class_sh.cc b/src/deprecated/grib_nearest_class_sh.cc similarity index 100% rename from src/grib_nearest_class_sh.cc rename to src/deprecated/grib_nearest_class_sh.cc diff --git a/src/eccodes_prototypes.h b/src/eccodes_prototypes.h index f7a090b41..944a8f043 100644 --- a/src/eccodes_prototypes.h +++ b/src/eccodes_prototypes.h @@ -1348,8 +1348,6 @@ grib_nearest* grib_nearest_factory(grib_handle* h, grib_arguments* args); /* grib_nearest_class_latlon_reduced.cc*/ -/* grib_nearest_class_sh.cc*/ - /* grib_nearest_class_lambert_conformal.cc*/ /* grib_nearest_class_polar_stereographic.cc*/ diff --git a/src/grib_nearest_class.h b/src/grib_nearest_class.h index e6e58ed80..531eb200a 100644 --- a/src/grib_nearest_class.h +++ b/src/grib_nearest_class.h @@ -7,5 +7,4 @@ extern grib_nearest_class* grib_nearest_class_mercator; extern grib_nearest_class* grib_nearest_class_polar_stereographic; extern grib_nearest_class* grib_nearest_class_reduced; extern grib_nearest_class* grib_nearest_class_regular; -extern grib_nearest_class* grib_nearest_class_sh; extern grib_nearest_class* grib_nearest_class_space_view; diff --git a/src/grib_nearest_factory.h b/src/grib_nearest_factory.h index bf9f01ec7..be537e8e6 100644 --- a/src/grib_nearest_factory.h +++ b/src/grib_nearest_factory.h @@ -7,5 +7,4 @@ { "polar_stereographic", &grib_nearest_class_polar_stereographic, }, { "reduced", &grib_nearest_class_reduced, }, { "regular", &grib_nearest_class_regular, }, -{ "sh", &grib_nearest_class_sh, }, { "space_view", &grib_nearest_class_space_view, },