Skip to content

Commit

Permalink
Tools: Remove redundant method grib_tool_print_key_values
Browse files Browse the repository at this point in the history
  • Loading branch information
shahramn committed Jan 21, 2024
1 parent 5607af0 commit a5de5c9
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 51 deletions.
15 changes: 15 additions & 0 deletions tests/codes_info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ status=$?
set -e
[ $status -eq 1 ]

# Wrong arguments
set +e
${tools_dir}/codes_info abcd > $tempLog 2>&1
status=$?
set -e
[ $status -eq 1 ]


# Verbose debug output
ECCODES_DEBUG=1 ${tools_dir}/codes_info

Expand All @@ -49,6 +57,13 @@ ECCODES_DEBUG=1 ${tools_dir}/codes_info
unset _ECCODES_ECMWF_TEST_DEFINITION_PATH
unset _ECCODES_ECMWF_TEST_SAMPLES_PATH

${tools_dir}/codes_info -d
${tools_dir}/codes_info -s

export ECCODES_EXTRA_SAMPLES_PATH=abcd
ECCODES_DEBUG=1 ${tools_dir}/codes_info
unset ECCODES_EXTRA_SAMPLES_PATH


# Clean up
rm -f $tempLog
5 changes: 0 additions & 5 deletions tools/gts_compare.cc
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
return 0;
}

void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
{
grib_print_key_values(options, h);
}

int grib_tool_finalise_action(grib_runtime_options* options)
{
grib_error* e = error_summary;
Expand Down
5 changes: 0 additions & 5 deletions tools/gts_copy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
return 0;
}

void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
{
grib_print_key_values(options, h);
}

int grib_tool_finalise_action(grib_runtime_options* options)
{
return 0;
Expand Down
5 changes: 0 additions & 5 deletions tools/gts_dump.cc
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
return 0;
}

void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
{
grib_print_key_values(options, h);
}

int grib_tool_finalise_action(grib_runtime_options* options)
{
return 0;
Expand Down
5 changes: 0 additions & 5 deletions tools/gts_filter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
return 0;
}

void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
{
grib_print_key_values(options, h);
}

int grib_tool_finalise_action(grib_runtime_options* options)
{
grib_file_pool_clean();
Expand Down
5 changes: 0 additions & 5 deletions tools/gts_get.cc
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
return 0;
}

void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
{
grib_print_key_values(options, h);
}

int grib_tool_finalise_action(grib_runtime_options* options)
{
return 0;
Expand Down
6 changes: 0 additions & 6 deletions tools/gts_ls.cc
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
return 0;
}

/* key values can be printed in this function. Headers are already printed if requested.*/
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
{
grib_print_key_values(options, h);
}

/* this is executed after the last message in the last file is processed */
int grib_tool_finalise_action(grib_runtime_options* options)
{
Expand Down
5 changes: 0 additions & 5 deletions tools/taf_dump.cc
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
return 0;
}

void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
{
grib_print_key_values(options, h);
}

int grib_tool_finalise_action(grib_runtime_options* options)
{
return 0;
Expand Down
5 changes: 0 additions & 5 deletions tools/taf_filter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
return 0;
}

void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
{
grib_print_key_values(options, h);
}

int grib_tool_finalise_action(grib_runtime_options* options)
{
grib_file_pool_clean();
Expand Down
5 changes: 0 additions & 5 deletions tools/taf_get.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
return 0;
}

void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
{
grib_print_key_values(options, h);
}

int grib_tool_finalise_action(grib_runtime_options* options)
{
return 0;
Expand Down
5 changes: 0 additions & 5 deletions tools/taf_ls.cc
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
return 0;
}

void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
{
grib_print_key_values(options, h);
}

int grib_tool_finalise_action(grib_runtime_options* options)
{
if (json)
Expand Down

0 comments on commit a5de5c9

Please sign in to comment.