Tools: Dead code removal

This commit is contained in:
Shahram Najm 2024-01-13 18:27:19 +00:00
parent 82f695986a
commit d493d65813
2 changed files with 9 additions and 11 deletions

View File

@ -450,11 +450,11 @@ static int compare_values(const grib_runtime_options* options, grib_handle* h1,
return err;
}
if (options->mode != MODE_GTS) {
//if (options->mode != MODE_GTS) {
/* TODO: Ignore missing values for keys in GTS. Not yet implemented */
isMissing1 = ((grib_is_missing(h1, name, &err1) == 1) && (err1 == 0)) ? 1 : 0;
isMissing2 = ((grib_is_missing(h2, name, &err2) == 1) && (err2 == 0)) ? 1 : 0;
}
//isMissing1 = ((grib_is_missing(h1, name, &err1) == 1) && (err1 == 0)) ? 1 : 0;
//isMissing2 = ((grib_is_missing(h2, name, &err2) == 1) && (err2 == 0)) ? 1 : 0;
//}
if ((isMissing1 == 1) && (isMissing2 == 1)) {
if (verbose)
@ -583,7 +583,6 @@ static int compare_values(const grib_runtime_options* options, grib_handle* h1,
break;
case GRIB_TYPE_BYTES:
if (verbose) printf(" as bytes\n");
if (options->mode == MODE_GTS) {
// We do not want to compare the message itself
return 0;
@ -591,7 +590,6 @@ static int compare_values(const grib_runtime_options* options, grib_handle* h1,
break;
case GRIB_TYPE_LABEL:
if (verbose) printf(" as label\n");
break;
default:

View File

@ -523,11 +523,11 @@ static int compare_values(const grib_runtime_options* options, grib_handle* h1,
return err;
}
if (options->mode != MODE_METAR) {
/* TODO: Ignore missing values for keys in METAR. Not yet implemented */
isMissing1 = ((grib_is_missing(h1, name, &err1) == 1) && (err1 == 0)) ? 1 : 0;
isMissing2 = ((grib_is_missing(h2, name, &err2) == 1) && (err2 == 0)) ? 1 : 0;
}
// if (options->mode != MODE_METAR) {
// // TODO: Ignore missing values for keys in METAR. Not yet implemented
// isMissing1 = ((grib_is_missing(h1, name, &err1) == 1) && (err1 == 0)) ? 1 : 0;
// isMissing2 = ((grib_is_missing(h2, name, &err2) == 1) && (err2 == 0)) ? 1 : 0;
// }
if ((isMissing1 == 1) && (isMissing2 == 1)) {
if (verbose)