From 2c75026e2274af9adcbcb94013bd95228af425f3 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Wed, 22 Mar 2017 10:57:14 +0000 Subject: [PATCH] ECC-449: Remove unused 'unpack' data member from grib_context --- src/grib_api_internal.h | 1 - src/grib_context.c | 4 ---- 2 files changed, 5 deletions(-) diff --git a/src/grib_api_internal.h b/src/grib_api_internal.h index 400317212..65bb4ba24 100644 --- a/src/grib_api_internal.h +++ b/src/grib_api_internal.h @@ -1037,7 +1037,6 @@ struct grib_context grib_trie* def_files; grib_string_list* blacklist; int ieee_packing; - int unpack; int bufrdc_mode; int bufr_set_to_missing_if_out_of_range; FILE* log_stream; diff --git a/src/grib_context.c b/src/grib_context.c index 420293395..80f75471d 100644 --- a/src/grib_context.c +++ b/src/grib_context.c @@ -343,7 +343,6 @@ static grib_context default_grib_context = { 0, /* def_files */ 0, /* blacklist */ 0, /* ieee_packing */ - 0, /* unpack */ 0, /* bufrdc_mode */ 0, /* bufr_set_to_missing_if_out_of_range */ 0, /* log_stream */ @@ -381,7 +380,6 @@ grib_context* grib_context_get_default() const char* keep_matrix = NULL; const char* bufrdc_mode = NULL; const char* bufr_set_to_missing_if_out_of_range = NULL; - const char* nounpack = NULL; write_on_fail = codes_getenv("ECCODES_GRIB_WRITE_ON_FAIL"); bufrdc_mode = codes_getenv("ECCODES_BUFRDC_MODE_ON"); @@ -396,7 +394,6 @@ grib_context* grib_context_get_default() no_big_group_split = codes_getenv("ECCODES_GRIB_NO_BIG_GROUP_SPLIT"); no_spd = codes_getenv("ECCODES_GRIB_NO_SPD"); keep_matrix = codes_getenv("ECCODES_GRIB_KEEP_MATRIX"); - nounpack = codes_getenv("ECCODES_NO_UNPACK"); /* On UNIX, when we read from a file we get exactly what is in the file on disk. * But on Windows a file can be opened in binary or text mode. In binary mode the system behaves exactly as in UNIX. @@ -410,7 +407,6 @@ grib_context* grib_context_get_default() default_grib_context.no_big_group_split = no_big_group_split ? atoi(no_big_group_split) : 0; default_grib_context.no_spd = no_spd ? atoi(no_spd) : 0; default_grib_context.keep_matrix = keep_matrix ? atoi(keep_matrix) : 1; - default_grib_context.unpack = nounpack ? 0 : 1; default_grib_context.write_on_fail = write_on_fail ? atoi(write_on_fail) : 0; default_grib_context.no_abort = no_abort ? atoi(no_abort) : 0; default_grib_context.debug = debug ? atoi(debug) : 0;