Cppcheck warnings: unused struct

This commit is contained in:
Shahram Najm 2021-11-06 19:29:01 +00:00
parent 87acf45bb5
commit 6ae358e67e
9 changed files with 1 additions and 75 deletions

View File

@ -109,14 +109,6 @@ GRIB_INLINE static int grib_inline_strcmp(const char* a, const char* b)
return (*a == 0 && *b == 0) ? 0 : 1;
}
typedef struct string_count string_count;
struct string_count
{
char* value;
int count;
string_count* next;
};
static int depth = 0;
static void init_class(grib_dumper_class* c) {}

View File

@ -107,15 +107,7 @@ GRIB_INLINE static int grib_inline_strcmp(const char* a, const char* b)
}
return (*a == 0 && *b == 0) ? 0 : 1;
}
/*
typedef struct string_count string_count;
struct string_count
{
char* value;
int count;
string_count* next;
};
*/
static int depth = 0;
static void init_class(grib_dumper_class* c) {}

View File

@ -109,14 +109,6 @@ GRIB_INLINE static int grib_inline_strcmp(const char* a, const char* b)
return (*a == 0 && *b == 0) ? 0 : 1;
}
typedef struct string_count string_count;
struct string_count
{
char* value;
int count;
string_count* next;
};
static int depth = 0;
static void init_class(grib_dumper_class* c) {}

View File

@ -109,14 +109,6 @@ GRIB_INLINE static int grib_inline_strcmp(const char* a, const char* b)
return (*a == 0 && *b == 0) ? 0 : 1;
}
typedef struct string_count string_count;
struct string_count
{
char* value;
int count;
string_count* next;
};
static int depth = 0;
static void init_class(grib_dumper_class* c) {}

View File

@ -109,14 +109,6 @@ GRIB_INLINE static int grib_inline_strcmp(const char* a, const char* b)
return (*a == 0 && *b == 0) ? 0 : 1;
}
typedef struct string_count string_count;
struct string_count
{
char* value;
int count;
string_count* next;
};
static int depth = 0;
static void init_class(grib_dumper_class* c) {}

View File

@ -110,16 +110,6 @@ GRIB_INLINE static int grib_inline_strcmp(const char* a, const char* b)
return (*a == 0 && *b == 0) ? 0 : 1;
}
/*
typedef struct string_count string_count;
struct string_count
{
char* value;
int count;
string_count* next;
};
*/
static int depth = 0;
static void init_class(grib_dumper_class* c) {}

View File

@ -109,14 +109,6 @@ GRIB_INLINE static int grib_inline_strcmp(const char* a, const char* b)
return (*a == 0 && *b == 0) ? 0 : 1;
}
typedef struct string_count string_count;
struct string_count
{
char* value;
int count;
string_count* next;
};
static int depth = 0;
static void init_class(grib_dumper_class* c) {}

View File

@ -109,14 +109,6 @@ GRIB_INLINE static int grib_inline_strcmp(const char* a, const char* b)
return (*a == 0 && *b == 0) ? 0 : 1;
}
typedef struct string_count string_count;
struct string_count
{
char* value;
int count;
string_count* next;
};
static int depth = 0;
static void init_class(grib_dumper_class* c) {}

View File

@ -108,14 +108,6 @@ GRIB_INLINE static int grib_inline_strcmp(const char* a, const char* b)
return (*a == 0 && *b == 0) ? 0 : 1;
}
typedef struct string_count string_count;
struct string_count
{
char* value;
int count;
string_count* next;
};
static void init_class(grib_dumper_class* c) {}
static int init(grib_dumper* d)