Remove unused errors

This commit is contained in:
Alex D. 2021-11-15 09:19:40 +00:00
parent cc742932a2
commit 91807c2b45
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
2 changed files with 3 additions and 12 deletions

View File

@ -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,
},
},
};

View File

@ -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;