mirror of https://github.com/ecmwf/eccodes.git
Dead code removal: Unused functions
This commit is contained in:
parent
20060abf93
commit
1e2b4472de
|
@ -20,7 +20,7 @@
|
|||
START_CLASS_DEF
|
||||
CLASS = accessor
|
||||
SUPER = grib_accessor_class_variable
|
||||
IMPLEMENTS = init;pack_double;pack_long;pack_string;pack_bytes
|
||||
IMPLEMENTS = init
|
||||
END_CLASS_DEF
|
||||
|
||||
*/
|
||||
|
@ -35,10 +35,6 @@ or edit "accessor.class" and rerun ./make_class.pl
|
|||
|
||||
*/
|
||||
|
||||
static int pack_bytes(grib_accessor*, const unsigned char*, size_t* len);
|
||||
static int pack_double(grib_accessor*, const double* val, size_t* len);
|
||||
static int pack_long(grib_accessor*, const long* val, size_t* len);
|
||||
static int pack_string(grib_accessor*, const char*, size_t* len);
|
||||
static void init(grib_accessor*, const long, grib_arguments*);
|
||||
|
||||
typedef struct grib_accessor_constant
|
||||
|
@ -75,17 +71,17 @@ static grib_accessor_class _grib_accessor_class_constant = {
|
|||
0, /* get sub_section */
|
||||
0, /* pack_missing */
|
||||
0, /* is_missing */
|
||||
&pack_long, /* pack_long */
|
||||
0, /* pack_long */
|
||||
0, /* unpack_long */
|
||||
&pack_double, /* pack_double */
|
||||
0, /* pack_double */
|
||||
0, /* pack_float */
|
||||
0, /* unpack_double */
|
||||
0, /* unpack_float */
|
||||
&pack_string, /* pack_string */
|
||||
0, /* pack_string */
|
||||
0, /* unpack_string */
|
||||
0, /* pack_string_array */
|
||||
0, /* unpack_string_array */
|
||||
&pack_bytes, /* pack_bytes */
|
||||
0, /* pack_bytes */
|
||||
0, /* unpack_bytes */
|
||||
0, /* pack_expression */
|
||||
0, /* notify_change */
|
||||
|
@ -113,23 +109,3 @@ static void init(grib_accessor* a, const long len, grib_arguments* arg)
|
|||
{
|
||||
a->flags |= GRIB_ACCESSOR_FLAG_READ_ONLY;
|
||||
}
|
||||
|
||||
static int pack_bytes(grib_accessor* a, const unsigned char* val, size_t* len)
|
||||
{
|
||||
return GRIB_READ_ONLY;
|
||||
}
|
||||
|
||||
static int pack_double(grib_accessor* a, const double* val, size_t* len)
|
||||
{
|
||||
return GRIB_READ_ONLY;
|
||||
}
|
||||
|
||||
static int pack_long(grib_accessor* a, const long* val, size_t* len)
|
||||
{
|
||||
return GRIB_READ_ONLY;
|
||||
}
|
||||
|
||||
static int pack_string(grib_accessor* a, const char* val, size_t* len)
|
||||
{
|
||||
return GRIB_READ_ONLY;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue