Dead code removal

This commit is contained in:
shahramn 2024-02-21 15:17:13 +00:00
parent 5b223d2eff
commit e434cdc19e
6 changed files with 28 additions and 42 deletions

View File

@ -17,7 +17,7 @@
CLASS = expression
IMPLEMENTS = destroy
IMPLEMENTS = native_type
IMPLEMENTS = evaluate;print
IMPLEMENTS = print
IMPLEMENTS = add_dependency
MEMBERS = long value
END_CLASS_DEF
@ -78,12 +78,6 @@ static void init_class(grib_expression_class* c)
}
/* END_CLASS_IMP */
static long evaluate(grib_expression* g, grib_handle* h)
{
const grib_expression_constant* e = (grib_expression_constant*)g;
return e->value;
}
static void print(grib_context* c, grib_expression* g, grib_handle* f)
{
const grib_expression_constant* e = (grib_expression_constant*)g;

View File

@ -1225,41 +1225,37 @@ struct grib_fieldset
/* concept index structures */
typedef struct grib_concept_index_key grib_concept_index_key;
typedef struct grib_concept_index grib_concept_index;
typedef struct grib_conditions_tree grib_conditions_tree;
typedef struct grib_concept_entry grib_concept_entry;
typedef struct grib_concept_key grib_concept_key;
//typedef struct grib_concept_index_key grib_concept_index_key;
//typedef struct grib_concept_index grib_concept_index;
//typedef struct grib_conditions_tree grib_conditions_tree;
//typedef struct grib_concept_entry grib_concept_entry;
//typedef struct grib_concept_key grib_concept_key;
struct grib_concept_index_entry
{
char* name;
char* value;
int type;
grib_concept_entry* next;
};
// struct grib_concept_index_entry {
// char* name;
// char* value;
// int type;
// grib_concept_entry* next;
// };
struct grib_concept_index_key
{
char* name;
int type;
grib_concept_key* next;
};
// struct grib_concept_index_key {
// char* name;
// int type;
// grib_concept_key* next;
// };
struct grib_concept_index
{
grib_context* context;
grib_concept_key* keys;
grib_conditions_tree* conditions;
};
// struct grib_concept_index {
// grib_context* context;
// grib_concept_key* keys;
// grib_conditions_tree* conditions;
// };
struct grib_conditions_tree
{
char* value;
void* object;
grib_conditions_tree* next;
grib_conditions_tree* next_key;
};
// struct grib_conditions_tree {
// char* value;
// void* object;
// grib_conditions_tree* next;
// grib_conditions_tree* next_key;
// };
/* support for in-memory definition and tables */

View File

@ -1,8 +1,6 @@
/* This file is automatically generated by ./make_class.pl, do not edit */
extern grib_expression_class* grib_expression_class_accessor;
extern grib_expression_class* grib_expression_class_binop;
extern grib_expression_class* grib_expression_class_column;
extern grib_expression_class* grib_expression_class_constant;
extern grib_expression_class* grib_expression_class_double;
extern grib_expression_class* grib_expression_class_functor;
extern grib_expression_class* grib_expression_class_is_in_dict;

View File

@ -1,8 +1,6 @@
/* This file is automatically generated by ./make_class.pl, do not edit */
{ "accessor", &grib_expression_class_accessor, },
{ "binop", &grib_expression_class_binop, },
{ "column", &grib_expression_class_column, },
{ "constant", &grib_expression_class_constant, },
{ "double", &grib_expression_class_double, },
{ "functor", &grib_expression_class_functor, },
{ "is_in_dict", &grib_expression_class_is_in_dict, },