diff options
author | David Robillard <d@drobilla.net> | 2016-03-15 23:37:09 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-01-13 15:33:54 -0500 |
commit | 3bf99421c04fdcc789745b7c59fc9bee8edce06b (patch) | |
tree | bdd67c76a8a00e48f89b82088cc8a8ce1329a54d /src/reader.h | |
parent | 16e8c50a29d8a932fa84a74d0b2a732994116db0 (diff) | |
download | serd-3bf99421c04fdcc789745b7c59fc9bee8edce06b.tar.gz serd-3bf99421c04fdcc789745b7c59fc9bee8edce06b.tar.bz2 serd-3bf99421c04fdcc789745b7c59fc9bee8edce06b.zip |
Remove useless character counting
Diffstat (limited to 'src/reader.h')
-rw-r--r-- | src/reader.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/reader.h b/src/reader.h index e67f8cc2..fb638a0b 100644 --- a/src/reader.h +++ b/src/reader.h @@ -174,12 +174,7 @@ push_byte(SerdReader* reader, Ref ref, const int c) uint8_t* const s = (uint8_t*)serd_stack_push(&reader->stack, 1); SerdNode* const node = (SerdNode*)(reader->stack.buf + ref); - ++node->n_bytes; - if (!(c & 0x80)) { // Starts with 0 bit, start of new character - ++node->n_chars; - } - *(s - 1) = (uint8_t)c; *s = '\0'; return SERD_SUCCESS; |