Skip to content

Commit 5607af0

Browse files
committed
Tools: Remove redundant method grib_tool_print_key_values
1 parent e59d9d3 commit 5607af0

31 files changed

+1
-136
lines changed

tools/bufr_compare.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -525,11 +525,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
525525
return 0;
526526
}
527527

528-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
529-
{
530-
grib_print_key_values(options, h);
531-
}
532-
533528
int grib_tool_finalise_action(grib_runtime_options* options)
534529
{
535530
grib_error* e = error_summary;

tools/bufr_copy.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
103103
return 0;
104104
}
105105

106-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
107-
{
108-
grib_print_key_values(options, h);
109-
}
110-
111106
int grib_tool_finalise_action(grib_runtime_options* options)
112107
{
113108
/* if (options->outfile->file)

tools/bufr_dump.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -569,11 +569,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
569569
return 0;
570570
}
571571

572-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
573-
{
574-
grib_print_key_values(options, h);
575-
}
576-
577572
int grib_tool_finalise_action(grib_runtime_options* options)
578573
{
579574
if (json)

tools/bufr_filter.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
101101
return 0;
102102
}
103103

104-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
105-
{
106-
grib_print_key_values(options, h);
107-
}
108-
109104
int grib_tool_finalise_action(grib_runtime_options* options)
110105
{
111106
int err = 0;

tools/bufr_get.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
9999
return 0;
100100
}
101101

102-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
103-
{
104-
grib_print_key_values(options, h);
105-
}
106-
107102
int grib_tool_finalise_action(grib_runtime_options* options)
108103
{
109104
return 0;

tools/bufr_index_build.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
107107
return 0;
108108
}
109109

110-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
111-
{
112-
}
113-
114110
int grib_tool_finalise_action(grib_runtime_options* options)
115111
{
116112
grib_index_key* the_keys;

tools/bufr_ls.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
129129
return 0;
130130
}
131131

132-
/* key values can be printed here. Headers are already printed if requested */
133-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
134-
{
135-
grib_print_key_values(options, h);
136-
}
137-
138132
/* This is executed after the last message in the last file is processed */
139133
int grib_tool_finalise_action(grib_runtime_options* options)
140134
{

tools/bufr_set.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
110110
return 0;
111111
}
112112

113-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
114-
{
115-
grib_print_key_values(options, h);
116-
}
117-
118113
int grib_tool_finalise_action(grib_runtime_options* options)
119114
{
120115
int err = 0;

tools/grib_compare.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -569,11 +569,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
569569
return 0;
570570
}
571571

572-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
573-
{
574-
grib_print_key_values(options, h);
575-
}
576-
577572
int grib_tool_finalise_action(grib_runtime_options* options)
578573
{
579574
grib_error* e = error_summary;

tools/grib_copy.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
123123
return 0;
124124
}
125125

126-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
127-
{
128-
grib_print_key_values(options, h);
129-
}
130-
131126
int grib_tool_finalise_action(grib_runtime_options* options)
132127
{
133128
int err = 0;

tools/grib_dump.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
231231
return 0;
232232
}
233233

234-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
235-
{
236-
grib_print_key_values(options, h);
237-
}
238-
239234
int grib_tool_finalise_action(grib_runtime_options* options)
240235
{
241236
if (json) {

tools/grib_filter.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
9999
return 0;
100100
}
101101

102-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
103-
{
104-
grib_print_key_values(options, h);
105-
}
106-
107102
int grib_tool_finalise_action(grib_runtime_options* options)
108103
{
109104
int err = 0;

tools/grib_get.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
221221
return 0;
222222
}
223223

224-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
225-
{
226-
grib_print_key_values(options, h);
227-
}
228-
229224
int grib_tool_finalise_action(grib_runtime_options* options)
230225
{
231226
if (nearest)

tools/grib_get_data.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
282282
return 0;
283283
}
284284

285-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
286-
{
287-
grib_print_key_values(options, h);
288-
}
289-
290285
int grib_tool_finalise_action(grib_runtime_options* options)
291286
{
292287
return 0;

tools/grib_histogram.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
175175
return 0;
176176
}
177177

178-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
179-
{
180-
grib_print_key_values(options, h);
181-
}
182-
183178
int grib_tool_finalise_action(grib_runtime_options* options)
184179
{
185180
return 0;

tools/grib_index_build.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
104104
return 0;
105105
}
106106

107-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
108-
{
109-
}
110-
111107
int grib_tool_finalise_action(grib_runtime_options* options)
112108
{
113109
grib_index_key* the_keys;

tools/grib_ls.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -397,12 +397,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
397397
return 0;
398398
}
399399

400-
/* key values can be printed here. Headers are already printed if requested */
401-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
402-
{
403-
grib_print_key_values(options, h);
404-
}
405-
406400
/* This is executed after the last message in the last file is processed */
407401
int grib_tool_finalise_action(grib_runtime_options* options)
408402
{

tools/grib_merge.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -366,11 +366,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
366366
return 0;
367367
}
368368

369-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
370-
{
371-
grib_print_key_values(options, h);
372-
}
373-
374369
int grib_tool_finalise_action(grib_runtime_options* options)
375370
{
376371
grib_tools_write_message(options, hh);

tools/grib_set.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
158158
return 0;
159159
}
160160

161-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
162-
{
163-
grib_print_key_values(options, h);
164-
}
165-
166161
int grib_tool_finalise_action(grib_runtime_options* options)
167162
{
168163
int err = 0;

tools/grib_to_netcdf.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4273,10 +4273,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
42734273
return 0;
42744274
}
42754275

4276-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
4277-
{
4278-
}
4279-
42804276
int grib_tool_finalise_action(grib_runtime_options* options)
42814277
{
42824278
request* config_r = NULL;

tools/grib_tools.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ static int grib_tool_with_orderby(grib_runtime_options* options)
292292

293293
grib_tool_new_handle_action(options, h);
294294

295-
grib_tool_print_key_values(options, h);
295+
grib_print_key_values(options, h);
296296

297297
grib_handle_delete(h);
298298
}

tools/grib_tools.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ int grib_tool_init(grib_runtime_options* options);
200200
int grib_tool_new_file_action(grib_runtime_options* options, grib_tools_file* file);
201201
int grib_tool_new_handle_action(grib_runtime_options* options, grib_handle* h);
202202
int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h);
203-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h);
204203
int grib_tool_finalise_action(grib_runtime_options* options);
205204
void grib_skip_check(grib_runtime_options* options, grib_handle* h);
206205
void grib_print_key_values(grib_runtime_options* options, grib_handle* h);

tools/gts_copy.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ grib_option grib_options[] = {
3131
"double (key:d) or an integer (key:i)\n\t\ttype can be defined. Default type "
3232
"is string.\n",
3333
0, 1, 0 },
34-
{ "B:", 0, 0, 0, 1, 0 },
3534
{ "V", 0, 0, 0, 1, 0 },
3635
{ "W:", 0, 0, 0, 1, 0 },
3736
{ "U", 0, 0, 1, 0, 0 },

tools/gts_ls.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ grib_option grib_options[] = {
1717
{ "F:", 0, 0, 1, 1, "%g" },
1818
{ "P:", 0, 0, 0, 1, 0 },
1919
{ "w:", 0, 0, 0, 1, 0 },
20-
/*{"j",0,"json output\n",0,1,0},*/
21-
{ "B:", 0, 0, 0, 1, 0 },
2220
{ "s:", 0, 0, 0, 1, 0 },
2321
{ "n:", 0, 0, 1, 1, "ls" },
2422
{ "V", 0, 0, 0, 1, 0 },

tools/metar_compare.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -367,11 +367,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
367367
return 0;
368368
}
369369

370-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
371-
{
372-
grib_print_key_values(options, h);
373-
}
374-
375370
int grib_tool_finalise_action(grib_runtime_options* options)
376371
{
377372
grib_error* e = error_summary;

tools/metar_copy.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
9292
return 0;
9393
}
9494

95-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
96-
{
97-
grib_print_key_values(options, h);
98-
}
99-
10095
int grib_tool_finalise_action(grib_runtime_options* options)
10196
{
10297
return 0;

tools/metar_dump.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
138138
return 0;
139139
}
140140

141-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
142-
{
143-
grib_print_key_values(options, h);
144-
}
145-
146141
int grib_tool_finalise_action(grib_runtime_options* options)
147142
{
148143
return 0;

tools/metar_filter.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
9393
return 0;
9494
}
9595

96-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
97-
{
98-
grib_print_key_values(options, h);
99-
}
100-
10196
int grib_tool_finalise_action(grib_runtime_options* options)
10297
{
10398
grib_file_pool_clean();

tools/metar_get.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
9595
return 0;
9696
}
9797

98-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
99-
{
100-
grib_print_key_values(options, h);
101-
}
102-
10398
int grib_tool_finalise_action(grib_runtime_options* options)
10499
{
105100
return 0;

tools/metar_ls.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,6 @@ int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
110110
return 0;
111111
}
112112

113-
/* key values can be printed in this function. Headers are already printed if requested.*/
114-
void grib_tool_print_key_values(grib_runtime_options* options, grib_handle* h)
115-
{
116-
grib_print_key_values(options, h);
117-
}
118-
119113
/* this is executed after the last message in the last file is processed */
120114
int grib_tool_finalise_action(grib_runtime_options* options)
121115
{

tools/taf_ls.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ grib_option grib_options[] = {
1818
{ "P:", 0, 0, 0, 1, 0 },
1919
{ "w:", 0, 0, 0, 1, 0 },
2020
{ "j", 0, "json output\n", 0, 1, 0 },
21-
{ "B:", 0, 0, 0, 1, 0 },
2221
{ "l:", 0, 0, 0, 1, 0 },
2322
{ "s:", 0, 0, 0, 1, 0 },
2423
{ "i:", 0, 0, 0, 1, 0 },

0 commit comments

Comments
 (0)