OCT 1. 删除err多余函数代码

This commit is contained in:
huangxin 2023-02-07 09:40:36 +08:00
parent c6f76af116
commit c84ab40292
1 changed files with 0 additions and 7 deletions

View File

@ -22,12 +22,5 @@ const char *getErrorEnumDesc(int errCode) {
if (errCode >= ARRAY_SIZE(g_enumStrVal) || errCode < 0) { if (errCode >= ARRAY_SIZE(g_enumStrVal) || errCode < 0) {
return g_enumStrVal[ARRAY_SIZE(g_enumStrVal) - 1][0]; return g_enumStrVal[ARRAY_SIZE(g_enumStrVal) - 1][0];
} }
return g_enumStrVal[errCode][0];
}
const char *getErrorEnumDescripty(int errCode) {
if (errCode >= ARRAY_SIZE(g_enumStrVal) || errCode < 0) {
return g_enumStrVal[ARRAY_SIZE(g_enumStrVal) - 1][1];
}
return g_enumStrVal[errCode][1]; return g_enumStrVal[errCode][1];
} }