Actions: Dead code removal

This commit is contained in:
Shahram Najm 2024-02-01 17:48:56 +00:00
parent b7d78a79b2
commit c96c128032
5 changed files with 6 additions and 35 deletions

View File

@ -14,7 +14,6 @@
START_CLASS_DEF
CLASS = action
IMPLEMENTS = dump
IMPLEMENTS = destroy;execute
MEMBERS = char *filename
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);
@ -53,7 +51,7 @@ static grib_action_class _grib_action_class_close = {
0, /* init */
&destroy, /* destroy */
&dump, /* dump */
0, /* dump */
0, /* xref */
0, /* create_accessor*/
@ -113,10 +111,6 @@ static int execute(grib_action* act, grib_handle* h)
return GRIB_SUCCESS;
}
static void dump(grib_action* act, FILE* f, int lvl)
{
}
static void destroy(grib_context* context, grib_action* act)
{
grib_action_close* a = (grib_action_close*)act;

View File

@ -17,7 +17,6 @@
START_CLASS_DEF
CLASS = action
IMPLEMENTS = dump
IMPLEMENTS = create_accessor
IMPLEMENTS = destroy
MEMBERS = long flags
@ -37,7 +36,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 create_accessor(grib_section*,grib_action*,grib_loader*);
@ -59,7 +57,7 @@ static grib_action_class _grib_action_class_modify = {
0, /* init */
&destroy, /* destroy */
&dump, /* dump */
0, /* dump */
0, /* xref */
&create_accessor, /* create_accessor*/
@ -96,10 +94,6 @@ grib_action* grib_action_create_modify(grib_context* context, const char* name,
return act;
}
static void dump(grib_action* act, FILE* f, int lvl)
{
}
static int create_accessor(grib_section* p, grib_action* act, grib_loader* h)
{
grib_action_modify* a = (grib_action_modify*)act;

View File

@ -17,7 +17,7 @@
START_CLASS_DEF
CLASS = action
IMPLEMENTS = dump;destroy;execute
IMPLEMENTS = destroy;execute
END_CLASS_DEF
*/
@ -33,7 +33,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);
@ -53,7 +52,7 @@ static grib_action_class _grib_action_class_noop = {
0, /* init */
&destroy, /* destroy */
&dump, /* dump */
0, /* dump */
0, /* xref */
0, /* create_accessor*/
@ -90,10 +89,6 @@ grib_action* grib_action_create_noop(grib_context* context, const char* fname)
return act;
}
static void dump(grib_action* act, FILE* f, int lvl)
{
}
static void destroy(grib_context* context, grib_action* act)
{
grib_context_free_persistent(context, act->name);

View File

@ -17,7 +17,6 @@
START_CLASS_DEF
CLASS = action
IMPLEMENTS = dump
IMPLEMENTS = destroy;execute
MEMBERS = char *name
MEMBERS = char *outname
@ -36,7 +35,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);
@ -58,7 +56,7 @@ static grib_action_class _grib_action_class_print = {
0, /* init */
&destroy, /* destroy */
&dump, /* dump */
0, /* dump */
0, /* xref */
0, /* create_accessor*/
@ -138,10 +136,6 @@ static int execute(grib_action* act, grib_handle* h)
return err;
}
static void dump(grib_action* act, FILE* f, int lvl)
{
}
static void destroy(grib_context* context, grib_action* act)
{
grib_action_print* a = (grib_action_print*)act;

View File

@ -14,7 +14,6 @@
START_CLASS_DEF
CLASS = action
IMPLEMENTS = dump
IMPLEMENTS = destroy;execute
MEMBERS = char *name
MEMBERS = int append
@ -34,7 +33,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);
@ -57,7 +55,7 @@ static grib_action_class _grib_action_class_write = {
0, /* init */
&destroy, /* destroy */
&dump, /* dump */
0, /* dump */
0, /* xref */
0, /* create_accessor*/
@ -193,10 +191,6 @@ static int execute(grib_action* act, grib_handle* h)
return err;
}
static void dump(grib_action* act, FILE* f, int lvl)
{
}
static void destroy(grib_context* context, grib_action* act)
{
grib_action_write* a = (grib_action_write*)act;