From e65ca5f98cc4ab500f90920237387b72228fa98a Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Thu, 11 Jan 2024 16:16:37 +0000 Subject: [PATCH] Expressions/Actions: Unused functions --- src/action_class_assert.cc | 12 ++++++------ src/grib_expression_class_is_integer.cc | 16 ++++++++-------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/action_class_assert.cc b/src/action_class_assert.cc index 804dedda0..4261524fd 100644 --- a/src/action_class_assert.cc +++ b/src/action_class_assert.cc @@ -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) { - int i = 0; - grib_action_assert* self = (grib_action_assert*)act; - for (i = 0; i < lvl; i++) - grib_context_print(act->context, f, " "); - grib_expression_print(act->context, self->expression, 0); - printf("\n"); + // int i = 0; + // grib_action_assert* self = (grib_action_assert*)act; + // for (i = 0; i < lvl; i++) + // grib_context_print(act->context, f, " "); + // grib_expression_print(act->context, self->expression, 0); + // printf("\n"); } static void destroy(grib_context* context, grib_action* act) diff --git a/src/grib_expression_class_is_integer.cc b/src/grib_expression_class_is_integer.cc index c42ae9f86..03554ece7 100644 --- a/src/grib_expression_class_is_integer.cc +++ b/src/grib_expression_class_is_integer.cc @@ -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) { - grib_expression_is_integer* e = (grib_expression_is_integer*)g; - printf("access('%s", e->name); - if (f) { - long s = 0; - grib_get_long(f, e->name, &s); - printf("=%ld", s); - } - printf("')"); + // grib_expression_is_integer* e = (grib_expression_is_integer*)g; + // printf("access('%s", e->name); + // if (f) { + // long s = 0; + // grib_get_long(f, e->name, &s); + // printf("=%ld", s); + // } + // printf("')"); } static void destroy(grib_context* c, grib_expression* g)