Tools: Remove redundant method grib_tool_print_key_values

This commit is contained in:
Shahram Najm 2024-01-21 17:49:23 +00:00
parent e59d9d3064
commit 5607af0f03
31 changed files with 1 additions and 136 deletions

View File

@ -525,11 +525,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

@ -103,11 +103,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 (options->outfile->file)

View File

@ -569,11 +569,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)

View File

@ -101,11 +101,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)
{
int err = 0;

View File

@ -99,11 +99,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,10 +107,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)
{
}
int grib_tool_finalise_action(grib_runtime_options* options)
{
grib_index_key* the_keys;

View File

@ -129,12 +129,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
return 0;
}
/* key values can be printed here. 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

@ -110,11 +110,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)
{
int err = 0;

View File

@ -569,11 +569,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

@ -123,11 +123,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)
{
int err = 0;

View File

@ -231,11 +231,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) {

View File

@ -99,11 +99,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)
{
int err = 0;

View File

@ -221,11 +221,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 (nearest)

View File

@ -282,11 +282,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

@ -175,11 +175,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

@ -104,10 +104,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)
{
}
int grib_tool_finalise_action(grib_runtime_options* options)
{
grib_index_key* the_keys;

View File

@ -397,12 +397,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
return 0;
}
/* key values can be printed here. 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

@ -366,11 +366,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_tools_write_message(options, hh);

View File

@ -158,11 +158,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)
{
int err = 0;

View File

@ -4273,10 +4273,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)
{
}
int grib_tool_finalise_action(grib_runtime_options* options)
{
request* config_r = NULL;

View File

@ -292,7 +292,7 @@ static int grib_tool_with_orderby(grib_runtime_options* options)
grib_tool_new_handle_action(options, h);
grib_tool_print_key_values(options, h);
grib_print_key_values(options, h);
grib_handle_delete(h);
}

View File

@ -200,7 +200,6 @@ int grib_tool_init(grib_runtime_options* options);
int grib_tool_new_file_action(grib_runtime_options* options, grib_tools_file* file);
int grib_tool_new_handle_action(grib_runtime_options* options, grib_handle* h);
int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h);
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h);
int grib_tool_finalise_action(grib_runtime_options* options);
void grib_skip_check(grib_runtime_options* options, grib_handle* h);
void grib_print_key_values(grib_runtime_options* options, grib_handle* h);

View File

@ -31,7 +31,6 @@ grib_option grib_options[] = {
"double (key:d) or an integer (key:i)\n\t\ttype can be defined. Default type "
"is string.\n",
0, 1, 0 },
{ "B:", 0, 0, 0, 1, 0 },
{ "V", 0, 0, 0, 1, 0 },
{ "W:", 0, 0, 0, 1, 0 },
{ "U", 0, 0, 1, 0, 0 },

View File

@ -17,8 +17,6 @@ grib_option grib_options[] = {
{ "F:", 0, 0, 1, 1, "%g" },
{ "P:", 0, 0, 0, 1, 0 },
{ "w:", 0, 0, 0, 1, 0 },
/*{"j",0,"json output\n",0,1,0},*/
{ "B:", 0, 0, 0, 1, 0 },
{ "s:", 0, 0, 0, 1, 0 },
{ "n:", 0, 0, 1, 1, "ls" },
{ "V", 0, 0, 0, 1, 0 },

View File

@ -367,11 +367,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

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

@ -138,11 +138,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

@ -93,11 +93,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

@ -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)
{
return 0;

View File

@ -110,12 +110,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

@ -18,7 +18,6 @@ grib_option grib_options[] = {
{ "P:", 0, 0, 0, 1, 0 },
{ "w:", 0, 0, 0, 1, 0 },
{ "j", 0, "json output\n", 0, 1, 0 },
{ "B:", 0, 0, 0, 1, 0 },
{ "l:", 0, 0, 0, 1, 0 },
{ "s:", 0, 0, 0, 1, 0 },
{ "i:", 0, 0, 0, 1, 0 },