Tools: Remove redundant method grib_tool_print_key_values

This commit is contained in:
Shahram Najm 2024-01-21 19:12:58 +00:00
parent 5607af0f03
commit a5de5c90be
11 changed files with 15 additions and 51 deletions

View File

@ -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
@ -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

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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();

View File

@ -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;

View File

@ -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)
{

View File

@ -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;

View File

@ -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();

View File

@ -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;

View File

@ -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)