ECC-1269: grib_util_set_spec: Remove obsolete option GRIB_UTIL_SET_SPEC_FLAGS_ONLY_PACKING

This commit is contained in:
Shahram Najm 2022-12-07 17:01:22 +00:00
parent 0f20ea5b19
commit 3c75a82f26
3 changed files with 3 additions and 6 deletions

View File

@ -56,9 +56,6 @@ Log mode for information for processing information
#define CODES_MISSING_LONG GRIB_MISSING_LONG
#define CODES_MISSING_DOUBLE GRIB_MISSING_DOUBLE
/*set spec flags*/
#define CODES_UTIL_SET_SPEC_FLAGS_ONLY_PACKING GRIB_UTIL_SET_SPEC_FLAGS_ONLY_PACKING
/* Dump option flags*/
#define CODES_DUMP_FLAG_READ_ONLY GRIB_DUMP_FLAG_READ_ONLY
#define CODES_DUMP_FLAG_DUMP_OK GRIB_DUMP_FLAG_DUMP_OK

View File

@ -96,9 +96,6 @@ Log mode for information for processing information
#define GRIB_MISSING_LONG 2147483647
#define GRIB_MISSING_DOUBLE -1e+100
/*set spec flags*/
#define GRIB_UTIL_SET_SPEC_FLAGS_ONLY_PACKING (1 << 0)
/* Dump option flags*/
#define GRIB_DUMP_FLAG_READ_ONLY (1 << 0)
#define GRIB_DUMP_FLAG_DUMP_OK (1 << 1)

View File

@ -997,6 +997,8 @@ grib_handle* grib_util_set_spec2(grib_handle* h,
goto cleanup;
}*/
/* ECC-1269 */
#if 0
if (flags & GRIB_UTIL_SET_SPEC_FLAGS_ONLY_PACKING) {
if (packing_spec->packing == GRIB_UTIL_PACKING_USE_PROVIDED &&
strcmp(input_packing_type, "grid_simple_matrix")) {
@ -1143,6 +1145,7 @@ grib_handle* grib_util_set_spec2(grib_handle* h,
return h;
} /* flags & GRIB_UTIL_SET_SPEC_FLAGS_ONLY_PACKING */
#endif
grid_type = get_grid_type_name(spec->grid_type);
if (!grid_type) {