mirror of https://github.com/ecmwf/eccodes.git
Dead code removal
This commit is contained in:
parent
82bc4615ba
commit
1ea75acf02
|
@ -111,17 +111,13 @@ static void remove_accessor(grib_accessor* a)
|
||||||
a->next->previous = a->previous;
|
a->next->previous = a->previous;
|
||||||
|
|
||||||
grib_accessor_delete(s->h->context, a);
|
grib_accessor_delete(s->h->context, a);
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int create_accessor(grib_section* p, grib_action* act, grib_loader* h)
|
static int create_accessor(grib_section* p, grib_action* act, grib_loader* h)
|
||||||
{
|
{
|
||||||
grib_action_remove* a = (grib_action_remove*)act;
|
grib_action_remove* a = (grib_action_remove*)act;
|
||||||
|
|
||||||
grib_accessor* ga = NULL;
|
grib_accessor* ga = grib_find_accessor(p->h, grib_arguments_get_name(p->h, a->args, 0));
|
||||||
|
|
||||||
ga = grib_find_accessor(p->h, grib_arguments_get_name(p->h, a->args, 0));
|
|
||||||
|
|
||||||
if (ga) {
|
if (ga) {
|
||||||
remove_accessor(ga);
|
remove_accessor(ga);
|
||||||
|
@ -134,15 +130,15 @@ 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)
|
||||||
{
|
{
|
||||||
grib_action_remove* a = (grib_action_remove*)act;
|
grib_context_log(act->context, GRIB_LOG_ERROR, "%s: dump not implemented", act->name);
|
||||||
|
// grib_action_remove* a = (grib_action_remove*)act;
|
||||||
int i = 0;
|
// int i = 0;
|
||||||
|
// 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_context_print(act->context, f, "remove %s as %s in %s\n",
|
||||||
|
// grib_arguments_get_name(0, a->args, 0), act->name, grib_arguments_get_name(0, a->args, 1));
|
||||||
grib_context_print(act->context, f, "remove %s as %s in %s\n", grib_arguments_get_name(0, a->args, 0), act->name, grib_arguments_get_name(0, a->args, 1));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void destroy(grib_context* context, grib_action* act)
|
static void destroy(grib_context* context, grib_action* act)
|
||||||
{
|
{
|
||||||
grib_action_remove* a = (grib_action_remove*)act;
|
grib_action_remove* a = (grib_action_remove*)act;
|
||||||
|
@ -151,4 +147,3 @@ static void destroy(grib_context* context, grib_action* act)
|
||||||
grib_context_free_persistent(context, act->name);
|
grib_context_free_persistent(context, act->name);
|
||||||
grib_context_free_persistent(context, act->op);
|
grib_context_free_persistent(context, act->op);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue