diff options
author | David Robillard <d@drobilla.net> | 2023-04-05 17:26:04 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 16:27:02 -0500 |
commit | caa74939cba8b1cd357e553efca9bec5074b1c53 (patch) | |
tree | 0efa5edcd727686b3c32a29992fb4cfb502cb121 /src/n3.c | |
parent | b1d30dc791348eacd44ebd6a00d0cf166a9e1cf5 (diff) | |
download | serd-caa74939cba8b1cd357e553efca9bec5074b1c53.tar.gz serd-caa74939cba8b1cd357e553efca9bec5074b1c53.tar.bz2 serd-caa74939cba8b1cd357e553efca9bec5074b1c53.zip |
Remove support for reading Turtle named inline nodes extension
Diffstat (limited to 'src/n3.c')
-rw-r--r-- | src/n3.c | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -1053,21 +1053,6 @@ read_BLANK_NODE_LABEL(SerdReader* const reader, return SERD_SUCCESS; } -static Ref -read_blankName(SerdReader* const reader) -{ - if (skip_byte(reader, '=') || eat_byte_check(reader, '=') != '=') { - r_err(reader, SERD_ERR_BAD_SYNTAX, "expected '='\n"); - return 0; - } - - Ref subject = 0; - bool ate_dot = false; - read_ws_star(reader); - read_iri(reader, &subject, &ate_dot); - return subject; -} - static SerdStatus read_anon(SerdReader* const reader, ReadContext ctx, @@ -1083,11 +1068,6 @@ read_anon(SerdReader* const reader, *ctx.flags |= empty ? SERD_EMPTY_S : SERD_ANON_S_BEGIN; } else { *ctx.flags |= empty ? SERD_EMPTY_O : SERD_ANON_O_BEGIN; - if (peek_delim(reader, '=')) { - if (!(*dest = read_blankName(reader)) || !eat_delim(reader, ';')) { - return SERD_ERR_BAD_SYNTAX; - } - } } if (!*dest) { |