mirror of https://github.com/ecmwf/eccodes.git
Dead code removal
This commit is contained in:
parent
7f2d5a1910
commit
e288704499
|
@ -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;
|
||||
|
|
|
@ -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:")) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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:")) {
|
||||
|
|
Loading…
Reference in New Issue