remove duplicated check

This commit is contained in:
dzaima 2023-05-17 20:52:36 +03:00
parent 4f15e1572d
commit e355395e7a

View File

@ -107,11 +107,8 @@ B utf8DecodeA(I8Arr* a) { // consumes a
void fprintsB(FILE* f, B x) {
u8 xe = TI(x,elType);
usz ia = IA(x);
if (ia==0) return;
if (xe==el_c32) {
fprintsU32(f, c32any_ptr(x), ia);
} else {
#define BUF_SZ 1024
if (ia==0) return;
if (elChr(xe)) {
if (xe==el_c32) {
fprintsU32(f, c32any_ptr(x), ia);
@ -138,7 +135,6 @@ void fprintsB(FILE* f, B x) {
}
}
#undef BUF_SZ
}
}
u64 utf8lenB(B x) { // doesn't consume; may error as it verifies whether is all chars