mirror of https://github.com/ecmwf/eccodes.git
Dead code removal
This commit is contained in:
parent
3ee23d1c16
commit
c7a67156d3
|
@ -258,8 +258,7 @@ typedef struct string_feed string_feed;
|
|||
|
||||
typedef struct codes_condition codes_condition;
|
||||
|
||||
/* typedef void (*dynamic_key_proc) (const char*, void*)
|
||||
*/
|
||||
/* typedef void (*dynamic_key_proc) (const char*, void*) */
|
||||
typedef void (*nearest_init_class_proc)(grib_nearest_class*);
|
||||
typedef int (*nearest_init_proc)(grib_nearest* i, grib_handle*, grib_arguments*);
|
||||
|
||||
|
@ -369,14 +368,12 @@ struct second_order_packed
|
|||
/**
|
||||
* an grib_compression
|
||||
* Structure supporting the packing and unpacking procedures
|
||||
*
|
||||
* @see grib_action_create_data
|
||||
*/
|
||||
struct grib_packer
|
||||
{
|
||||
const char* name;
|
||||
grib_pack_proc pack; /** < packing procedure */
|
||||
grib_unpack_proc unpack; /** < unpacking procedure */
|
||||
grib_pack_proc pack; /** < packing procedure */
|
||||
grib_unpack_proc unpack; /** < unpacking procedure */
|
||||
};
|
||||
|
||||
/* --------------- */
|
||||
|
@ -394,7 +391,7 @@ struct grib_loader
|
|||
};
|
||||
|
||||
/**
|
||||
* an action
|
||||
* An action
|
||||
* Structure supporting the creation of accessor, resulting of a statement during a definition file parsing
|
||||
*
|
||||
* @see grib_action_class
|
||||
|
@ -437,7 +434,7 @@ typedef grib_action* (*action_reparse_proc)(grib_action* a, grib_accessor*, int*
|
|||
typedef int (*action_execute_proc)(grib_action* a, grib_handle*);
|
||||
|
||||
/**
|
||||
* an action_class
|
||||
* An action_class
|
||||
* Structure supporting the specific behaviour of an action
|
||||
*
|
||||
* @see grib_action
|
||||
|
@ -464,22 +461,22 @@ struct grib_action_class
|
|||
};
|
||||
|
||||
/**
|
||||
* a buffer
|
||||
* A buffer
|
||||
* Structure containing the data of a message
|
||||
*/
|
||||
struct grib_buffer
|
||||
{
|
||||
int property; /** < property parameter of buffer */
|
||||
int validity; /** < validity parameter of buffer */
|
||||
int growable; /** < buffer can be grown */
|
||||
size_t length; /** < Buffer length */
|
||||
size_t ulength; /** < length used of the buffer */
|
||||
size_t ulength_bits; /** < length used of the buffer in bits */
|
||||
unsigned char* data; /** < the data byte array */
|
||||
int property; /** < property parameter of buffer */
|
||||
int validity; /** < validity parameter of buffer */
|
||||
int growable; /** < buffer can be grown */
|
||||
size_t length; /** < Buffer length */
|
||||
size_t ulength; /** < length used of the buffer */
|
||||
size_t ulength_bits; /** < length used of the buffer in bits */
|
||||
unsigned char* data; /** < the data byte array */
|
||||
};
|
||||
|
||||
/**
|
||||
* an Accessor
|
||||
* An accessor
|
||||
* Structure supporting each single data unit and allowing its access
|
||||
* @see grib_accessor_class
|
||||
*/
|
||||
|
@ -500,18 +497,18 @@ struct grib_virtual_value
|
|||
|
||||
struct grib_accessor
|
||||
{
|
||||
const char* name; /** < name of the accessor */
|
||||
const char* name_space; /** < namespace to which the accessor belongs */
|
||||
const char* name; /** < name of the accessor */
|
||||
const char* name_space; /** < namespace to which the accessor belongs */
|
||||
grib_context* context;
|
||||
grib_handle* h;
|
||||
grib_action* creator; /** < action that created the accessor */
|
||||
long length; /** < byte length of the accessor */
|
||||
long offset; /** < offset of the data in the buffer */
|
||||
grib_section* parent; /** < section to which the accessor is attached */
|
||||
grib_accessor* next; /** < next accessor in list */
|
||||
grib_accessor* previous; /** < next accessor in list */
|
||||
grib_accessor_class* cclass; /** < behaviour of the accessor */
|
||||
unsigned long flags; /** < Various flags */
|
||||
grib_action* creator; /** < action that created the accessor */
|
||||
long length; /** < byte length of the accessor */
|
||||
long offset; /** < offset of the data in the buffer */
|
||||
grib_section* parent; /** < section to which the accessor is attached */
|
||||
grib_accessor* next; /** < next accessor in list */
|
||||
grib_accessor* previous; /** < next accessor in list */
|
||||
grib_accessor_class* cclass; /** < behaviour of the accessor */
|
||||
unsigned long flags; /** < Various flags */
|
||||
grib_section* sub_section;
|
||||
|
||||
const char* all_names[MAX_ACCESSOR_NAMES]; /** < name of the accessor */
|
||||
|
@ -547,7 +544,7 @@ struct grib_accessor
|
|||
#define GRIB_ACCESSOR_FLAG_COPY_IF_CHANGING_EDITION (1 << 19)
|
||||
|
||||
/**
|
||||
* a section accessor
|
||||
* A section accessor
|
||||
* Structure supporting hierarchical naming of the accessors
|
||||
* @see grib_accessor
|
||||
*/
|
||||
|
@ -555,9 +552,9 @@ struct grib_section
|
|||
{
|
||||
grib_accessor* owner;
|
||||
grib_handle* h; /** < Handles of all accessors and buffer */
|
||||
grib_accessor* aclength; /** < block of the length of the block */
|
||||
grib_block_of_accessors* block; /** < block */
|
||||
grib_action* branch; /** < branch that created the block */
|
||||
grib_accessor* aclength; /** < block of the length of the block */
|
||||
grib_block_of_accessors* block; /** < block */
|
||||
grib_action* branch; /** < branch that created the block */
|
||||
size_t length;
|
||||
size_t padding;
|
||||
};
|
||||
|
@ -640,18 +637,18 @@ struct grib_dumper_class
|
|||
|
||||
struct grib_iterator
|
||||
{
|
||||
grib_arguments* args; /** args of iterator */
|
||||
grib_arguments* args; /** args of iterator */
|
||||
grib_handle* h;
|
||||
long e; /** current element */
|
||||
size_t nv; /** number of values */
|
||||
double* data; /** data values */
|
||||
long e; /** current element */
|
||||
size_t nv; /** number of values */
|
||||
double* data; /** data values */
|
||||
grib_iterator_class* cclass;
|
||||
unsigned long flags;
|
||||
};
|
||||
|
||||
struct grib_nearest
|
||||
{
|
||||
grib_arguments* args; /** args of iterator */
|
||||
grib_arguments* args; /** args of iterator */
|
||||
grib_handle* h;
|
||||
grib_context* context;
|
||||
double* values;
|
||||
|
@ -823,8 +820,8 @@ void codes_assertion_failed(const char* message, const char* file, int line);
|
|||
|
||||
struct grib_handle
|
||||
{
|
||||
grib_context* context; /** < context attached to this handle */
|
||||
grib_buffer* buffer; /** < buffer attached to the handle */
|
||||
grib_context* context; /** < context attached to this handle */
|
||||
grib_buffer* buffer; /** < buffer attached to the handle */
|
||||
grib_section* root; /** the root section*/
|
||||
grib_section* rules; /** the rules section*/
|
||||
grib_dependency* dependencies; /** List of dependencies */
|
||||
|
@ -853,13 +850,12 @@ struct grib_handle
|
|||
/* For GRIB2 multi-field messages */
|
||||
struct grib_multi_handle
|
||||
{
|
||||
grib_context* context; /** < context attached to this handle */
|
||||
grib_buffer* buffer; /** < buffer attached to the handle */
|
||||
grib_context* context; /** < context attached to this handle */
|
||||
grib_buffer* buffer; /** < buffer attached to the handle */
|
||||
size_t offset;
|
||||
size_t length;
|
||||
};
|
||||
|
||||
|
||||
struct grib_accessor_class
|
||||
{
|
||||
grib_accessor_class** super;
|
||||
|
@ -1094,7 +1090,6 @@ struct grib_expression_class
|
|||
expression_init_proc init;
|
||||
expression_destroy_proc destroy;
|
||||
|
||||
|
||||
expression_print_proc print;
|
||||
expression_add_dependency_proc add_dependency;
|
||||
|
||||
|
@ -1106,7 +1101,6 @@ struct grib_expression_class
|
|||
expression_evaluate_string_proc evaluate_string;
|
||||
};
|
||||
|
||||
|
||||
struct grib_arguments
|
||||
{
|
||||
struct grib_arguments* next;
|
||||
|
@ -1223,40 +1217,6 @@ struct grib_fieldset
|
|||
grib_field** fields;
|
||||
};
|
||||
|
||||
/* 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;
|
||||
|
||||
// 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 {
|
||||
// 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;
|
||||
// };
|
||||
|
||||
/* support for in-memory definition and tables */
|
||||
|
||||
extern int codes_memfs_exists(const char* path);
|
||||
|
@ -1297,7 +1257,6 @@ struct grib_field_list
|
|||
grib_field_list* next;
|
||||
};
|
||||
|
||||
|
||||
struct grib_index
|
||||
{
|
||||
grib_context* context;
|
||||
|
@ -1384,10 +1343,8 @@ struct bufr_keys_iterator
|
|||
grib_trie* seen;
|
||||
};
|
||||
|
||||
/* ----------*/
|
||||
/* md5 */
|
||||
/* --------- md5 --------*/
|
||||
typedef unsigned long cvs_uint32;
|
||||
|
||||
struct cvs_MD5Context
|
||||
{
|
||||
cvs_uint32 buf[4];
|
||||
|
@ -1421,7 +1378,6 @@ struct grib_case
|
|||
};
|
||||
|
||||
/* ----------*/
|
||||
|
||||
typedef struct code_table_entry
|
||||
{
|
||||
char* abbreviation;
|
||||
|
@ -1440,7 +1396,7 @@ struct grib_codetable
|
|||
|
||||
typedef struct grib_smart_table_entry
|
||||
{
|
||||
/*int code;*/
|
||||
/*int code;*/
|
||||
char* abbreviation;
|
||||
char* column[MAX_SMART_TABLE_COLUMNS];
|
||||
} grib_smart_table_entry;
|
||||
|
|
Loading…
Reference in New Issue