mirror of https://github.com/ecmwf/eccodes.git
Dead code removal
This commit is contained in:
parent
8f01cabad3
commit
626d3c4102
|
@ -14,7 +14,6 @@
|
|||
|
||||
START_CLASS_DEF
|
||||
CLASS = action
|
||||
IMPLEMENTS = dump
|
||||
IMPLEMENTS = destroy;execute
|
||||
MEMBERS = char *name
|
||||
END_CLASS_DEF
|
||||
|
@ -32,7 +31,6 @@ or edit "action.class" and rerun ./make_class.pl
|
|||
*/
|
||||
|
||||
static void init_class (grib_action_class*);
|
||||
static void dump (grib_action* d, FILE*,int);
|
||||
static void destroy (grib_context*,grib_action*);
|
||||
static int execute(grib_action* a,grib_handle* h);
|
||||
|
||||
|
@ -52,7 +50,7 @@ static grib_action_class _grib_action_class_set_missing = {
|
|||
&init_class, /* init_class */
|
||||
0, /* init */
|
||||
&destroy, /* destroy */
|
||||
&dump, /* dump */
|
||||
0, /* dump */
|
||||
0, /* xref */
|
||||
0, /* create_accessor */
|
||||
0, /* notify_change */
|
||||
|
@ -95,17 +93,6 @@ static int execute(grib_action* a, grib_handle* h)
|
|||
return grib_set_missing(h, self->name);
|
||||
}
|
||||
|
||||
static void dump(grib_action* act, FILE* f, int lvl)
|
||||
{
|
||||
grib_context_log(act->context, GRIB_LOG_ERROR, "%s %s(): Not implemented", __FILE__, __func__);
|
||||
// int i = 0;
|
||||
// const grib_action_set_missing* self = (grib_action_set_missing*)act;
|
||||
// for (i = 0; i < lvl; i++)
|
||||
// grib_context_print(act->context, f, " ");
|
||||
// grib_context_print(act->context, f, self->name);
|
||||
// printf("\n");
|
||||
}
|
||||
|
||||
static void destroy(grib_context* context, grib_action* act)
|
||||
{
|
||||
grib_action_set_missing* a = (grib_action_set_missing*)act;
|
||||
|
|
|
@ -7,6 +7,9 @@ ECCODES_PATCH_VERSION=@eccodes_VERSION_PATCH@
|
|||
# ECCODES_VERSION="$ECCODES_MAJOR_VERSION.$ECCODES_MINOR_VERSION.$ECCODES_PATCH_VERSION"
|
||||
|
||||
ECCODES_GIT_SHA1="@eccodes_GIT_SHA1@"
|
||||
if [ "x$ECCODES_GIT_SHA1" = "x" ]; then
|
||||
ECCODES_GIT_SHA1="unknown"
|
||||
fi
|
||||
|
||||
#################################################################
|
||||
# Commands
|
||||
|
|
Loading…
Reference in New Issue