Dead code removal

This commit is contained in:
Shahram Najm 2023-06-21 10:45:16 +01:00
parent 7f2d5a1910
commit e288704499
4 changed files with 9 additions and 28 deletions

View File

@ -1398,7 +1398,7 @@ static int compare_handles(grib_handle* handle1, grib_handle* handle2, grib_runt
if (size1 == size2 && !(memcmp_ret = memcmp(msg1, msg2, size1))) {
return 0;
}
#if 0
#if defined(BUFR_COMPARE_BYTES)
else {
int lcount=count,ii;
if (options->current_infile) lcount=options->current_infile->filter_handle_count;

View File

@ -61,15 +61,6 @@ int grib_tool_before_getopt(grib_runtime_options* options)
int grib_tool_init(grib_runtime_options* options)
{
#if 0
if (options->outfile && options->outfile->name) {
options->outfile->file = fopen(options->outfile->name,"w");
if(!options->outfile->file) {
perror(options->outfile->name);
exit(1);
}
}
#endif
/* ECC-657: If user supplied -p to print some keys, turn on verbose */
if (grib_options_on("p:")) {
if (grib_options_get_option("p:")) {

View File

@ -76,15 +76,14 @@ int grib_tool_init(grib_runtime_options* options)
exit(1);
}
#if 0
if (options->outfile && options->outfile->name) {
options->outfile->file = fopen(options->outfile->name,"w");
if(!options->outfile->file) {
perror(options->outfile->name);
exit(1);
}
}
#endif
// if (options->outfile && options->outfile->name) {
// options->outfile->file = fopen(options->outfile->name,"w");
// if(!options->outfile->file) {
// perror(options->outfile->name);
// exit(1);
// }
// }
return 0;
}

View File

@ -65,15 +65,6 @@ int grib_tool_before_getopt(grib_runtime_options* options)
int grib_tool_init(grib_runtime_options* options)
{
#if 0
if (options->outfile && options->outfile->name) {
options->outfile->file = fopen(options->outfile->name,"w");
if(!options->outfile->file) {
perror(options->outfile->name);
exit(1);
}
}
#endif
/* ECC-657: If user supplied -p to print some keys, turn on verbose */
if (grib_options_on("p:")) {
if (grib_options_get_option("p:")) {