mirror of https://github.com/ecmwf/eccodes.git
Expressions/Actions: Unused functions
This commit is contained in:
parent
5619ade9c2
commit
e65ca5f98c
|
@ -107,12 +107,12 @@ static int create_accessor(grib_section* p, grib_action* act, grib_loader* h)
|
||||||
|
|
||||||
static void dump(grib_action* act, FILE* f, int lvl)
|
static void dump(grib_action* act, FILE* f, int lvl)
|
||||||
{
|
{
|
||||||
int i = 0;
|
// int i = 0;
|
||||||
grib_action_assert* self = (grib_action_assert*)act;
|
// grib_action_assert* self = (grib_action_assert*)act;
|
||||||
for (i = 0; i < lvl; i++)
|
// for (i = 0; i < lvl; i++)
|
||||||
grib_context_print(act->context, f, " ");
|
// grib_context_print(act->context, f, " ");
|
||||||
grib_expression_print(act->context, self->expression, 0);
|
// grib_expression_print(act->context, self->expression, 0);
|
||||||
printf("\n");
|
// printf("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void destroy(grib_context* context, grib_action* act)
|
static void destroy(grib_context* context, grib_action* act)
|
||||||
|
|
|
@ -155,14 +155,14 @@ static string evaluate_string(grib_expression* g, grib_handle* h, char* buf, siz
|
||||||
|
|
||||||
static void print(grib_context* c, grib_expression* g, grib_handle* f)
|
static void print(grib_context* c, grib_expression* g, grib_handle* f)
|
||||||
{
|
{
|
||||||
grib_expression_is_integer* e = (grib_expression_is_integer*)g;
|
// grib_expression_is_integer* e = (grib_expression_is_integer*)g;
|
||||||
printf("access('%s", e->name);
|
// printf("access('%s", e->name);
|
||||||
if (f) {
|
// if (f) {
|
||||||
long s = 0;
|
// long s = 0;
|
||||||
grib_get_long(f, e->name, &s);
|
// grib_get_long(f, e->name, &s);
|
||||||
printf("=%ld", s);
|
// printf("=%ld", s);
|
||||||
}
|
// }
|
||||||
printf("')");
|
// printf("')");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void destroy(grib_context* c, grib_expression* g)
|
static void destroy(grib_context* c, grib_expression* g)
|
||||||
|
|
Loading…
Reference in New Issue