diff options
author | David Robillard <d@drobilla.net> | 2013-03-03 05:44:37 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-03-03 05:44:37 +0000 |
commit | 27f9c0f0e2768785bcadfc83bc1a18ca54f1f24d (patch) | |
tree | 4f64ba1660016fae0687d1640b7d2c2245091f39 /src/reader.c | |
parent | 1d32c6e37bb4409719d6170c4b0e45cd3557df9a (diff) | |
download | serd-27f9c0f0e2768785bcadfc83bc1a18ca54f1f24d.tar.gz serd-27f9c0f0e2768785bcadfc83bc1a18ca54f1f24d.tar.bz2 serd-27f9c0f0e2768785bcadfc83bc1a18ca54f1f24d.zip |
Remove dead code.
git-svn-id: http://svn.drobilla.net/serd/trunk@429 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/reader.c')
-rw-r--r-- | src/reader.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/reader.c b/src/reader.c index 6fa77300..73eba93a 100644 --- a/src/reader.c +++ b/src/reader.c @@ -579,9 +579,6 @@ static Ref read_String(SerdReader* reader, SerdNodeFlags* flags) { const uint8_t q1 = peek_byte(reader); - if (q1 != '\"' && q1 != '\'') { - return 0; - } eat_byte_safe(reader, q1); const uint8_t q2 = peek_byte(reader); @@ -893,14 +890,15 @@ read_literal(SerdReader* reader, Ref* dest, } switch (peek_byte(reader)) { + case '@': + eat_byte_safe(reader, '@'); + TRY_THROW(*lang = read_language(reader)); + break; case '^': eat_byte_safe(reader, '^'); eat_byte_check(reader, '^'); TRY_THROW(read_iri(reader, datatype)); break; - case '@': - eat_byte_safe(reader, '@'); - TRY_THROW(*lang = read_language(reader)); } *dest = str; return true; @@ -941,8 +939,6 @@ read_verb(SerdReader* reader, Ref* dest) return (*dest = push_node(reader, SERD_URI, NS_RDF "type", 47)); } else if (st > SERD_FAILURE || !read_PrefixedName(reader, *dest, false)) { return (*dest = pop_node(reader, *dest)); - } else if (!strncmp((char*)deref(reader, *dest)->buf, "_:", 2)) { - return (*dest = pop_node(reader, *dest)); // FIXME: necessary? } else { return true; } |