diff options
author | David Robillard <d@drobilla.net> | 2019-12-19 10:21:30 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-27 13:13:58 +0100 |
commit | 21c59b99a1c75d58d8aab760105b0535cc04c6f1 (patch) | |
tree | 0fb53eb4c32bee05624cdfc451bbd46b419bf800 /src | |
parent | 6295d10a7f076aa4ee403a20c28359ef3a747a68 (diff) | |
download | serd-21c59b99a1c75d58d8aab760105b0535cc04c6f1.tar.gz serd-21c59b99a1c75d58d8aab760105b0535cc04c6f1.tar.bz2 serd-21c59b99a1c75d58d8aab760105b0535cc04c6f1.zip |
Remove SERD_NOTHING node type
Diffstat (limited to 'src')
-rw-r--r-- | src/env.c | 1 | ||||
-rw-r--r-- | src/node.c | 2 | ||||
-rw-r--r-- | src/writer.c | 2 |
3 files changed, 1 insertions, 4 deletions
@@ -220,7 +220,6 @@ serd_env_expand_node(const SerdEnv* env, const SerdNode* node) { switch (node->type) { - case SERD_NOTHING: case SERD_LITERAL: break; case SERD_URI: { @@ -388,7 +388,7 @@ serd_node_new_blob(const void* buf, size_t size, bool wrap_lines) SerdType serd_node_type(const SerdNode* node) { - return node ? node->type : SERD_NOTHING; + return node->type; } const char* diff --git a/src/writer.c b/src/writer.c index c3ccffb2..aea714f3 100644 --- a/src/writer.c +++ b/src/writer.c @@ -652,8 +652,6 @@ write_node(SerdWriter* writer, { bool ret = false; switch (node->type) { - case SERD_NOTHING: - break; case SERD_LITERAL: ret = write_literal(writer, node, datatype, lang, flags); break; |