Remove unused errors
This commit is contained in:
parent
cc742932a2
commit
91807c2b45
|
@ -42,11 +42,8 @@ static uint8_t corelibs_baseven_bits_nth (uint8_t, uint8_t);
|
|||
enum { // Avoid collision in error numbers
|
||||
CORELIBS_BASEVEN_ERR_OK = 0,
|
||||
CORELIBS_BASEVEN_ERR_UNKOWN,
|
||||
CORELIBS_BASEVEN_ERR_MEM_ALLOC,
|
||||
CORELIBS_BASEVEN_ERR_MEM_OVERFLOW,
|
||||
CORELIBS_BASEVEN_ERR_VAR_NCOMPAT,
|
||||
CORELIBS_BASEVEN_ERR_VAR_INVAL,
|
||||
CORELIBS_BASEVEN_ERR_VAR_UNDEF,
|
||||
};
|
||||
|
||||
const struct corelibs_baseven_interface cl_baseven = {
|
||||
|
@ -60,13 +57,10 @@ const struct corelibs_baseven_interface cl_baseven = {
|
|||
.ok = CORELIBS_BASEVEN_ERR_OK,
|
||||
.unknown = CORELIBS_BASEVEN_ERR_UNKOWN,
|
||||
.mem = {
|
||||
.alloc = CORELIBS_BASEVEN_ERR_MEM_ALLOC,
|
||||
.overflow = CORELIBS_BASEVEN_ERR_MEM_OVERFLOW,
|
||||
},
|
||||
.var = {
|
||||
.undef = CORELIBS_BASEVEN_ERR_VAR_UNDEF,
|
||||
.inval = CORELIBS_BASEVEN_ERR_VAR_INVAL,
|
||||
.ncompat = CORELIBS_BASEVEN_ERR_VAR_NCOMPAT,
|
||||
.inval = CORELIBS_BASEVEN_ERR_VAR_INVAL,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
@ -43,14 +43,11 @@ struct corelibs_baseven_interface {
|
|||
unknown; // Unknown error
|
||||
|
||||
const struct {
|
||||
const cl_baseven_err alloc, // Memory allocation failed
|
||||
overflow; // Not enough memory to run
|
||||
const cl_baseven_err overflow; // Not enough memory to run
|
||||
} mem;
|
||||
|
||||
const struct {
|
||||
const cl_baseven_err undef, // Undefined variable
|
||||
inval, // Invalid variable
|
||||
ncompat; // Incompatible variable
|
||||
const cl_baseven_err inval; // Invalid variable
|
||||
} var;
|
||||
|
||||
} err;
|
||||
|
|
Reference in New Issue