ECC-449: Remove unused 'unpack' data member from grib_context

This commit is contained in:
Shahram Najm 2017-03-22 10:57:14 +00:00
parent 10b4653c20
commit 2c75026e22
2 changed files with 0 additions and 5 deletions

View File

@ -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;

View File

@ -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;