From 11b69c295494b2b75feb7af3bd20b01e810130ef Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Sun, 31 Dec 2023 00:14:23 +0000 Subject: [PATCH] Dead code removal --- fortran/grib_fortran_kinds.c | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/fortran/grib_fortran_kinds.c b/fortran/grib_fortran_kinds.c index 485194455..5835a53d2 100644 --- a/fortran/grib_fortran_kinds.c +++ b/fortran/grib_fortran_kinds.c @@ -14,41 +14,29 @@ extern "C" { #endif - -void f_sizeof_(void *x,void *y, int *size) { +void f_sizeof_(void *x, void *y, int *size) { *size=((char*)y)-((char*)x); } - -void check_double(double *x,double *y,char* ret) { +void check_double_(double *x, double* y, char* ret) { *ret = ((char*)y)-((char*)x) == sizeof(*x) ? 't' : 'f'; } -void check_double_(double *x,double *y,char* ret) {check_double(x,y,ret);} - -void check_float(float *x,float *y,char* ret) { +void check_float_(float* x, float* y, char* ret) { *ret = ((char*)y)-((char*)x) == sizeof(*x) ? 't' : 'f'; } -void check_float_(float *x,float *y,char* ret) { check_float(x,y,ret); } - -void check_int(int *x,int *y,char* ret) { +void check_int_(int* x, int* y, char* ret) { *ret = ((char*)y)-((char*)x) == sizeof(*x) ? 't' : 'f'; } -void check_int_(int *x,int *y,char* ret) { check_int(x,y,ret); } - -void check_long(long *x,long *y,char* ret) { +void check_long_(long* x, long * y, char* ret) { *ret = ((char*)y)-((char*)x) == sizeof(*x) ? 't' : 'f'; } -void check_long_(long *x,long *y,char* ret) {check_long(x,y,ret);} - -void check_size_t(size_t *x,size_t *y,char* ret) { +void check_size_t_(size_t* x, size_t* y, char* ret) { *ret = ((char*)y)-((char*)x) == sizeof(*x) ? 't' : 'f'; } -void check_size_t_(size_t *x,size_t *y,char* ret) {check_size_t(x,y,ret);} - #ifdef __cplusplus }