Skip to content

Commit 073ad0d

Browse files
authored
This function is unused. (simdjson#842)
1 parent fc1ddcd commit 073ad0d

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/jsoncharutils.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -255,17 +255,6 @@ static inline uint32_t hex_to_u32_nocheck(
255255
return v1 | v2 | v3 | v4;
256256
}
257257

258-
// returns true if the provided byte value is a
259-
// "continuing" UTF-8 value, that is, if it starts with
260-
// 0b10...
261-
static inline bool is_utf8_continuing(char c) {
262-
// in 2 complement's notation, values start at 0b10000 (-128)... and
263-
// go up to 0b11111 (-1)... so we want all values from -128 to -65 (which is 0b10111111)
264-
return ((signed char)c) <= -65;
265-
}
266-
267-
268-
269258
// given a code point cp, writes to c
270259
// the utf-8 code, outputting the length in
271260
// bytes, if the length is zero, the code point

0 commit comments

Comments
 (0)