From 21c59b99a1c75d58d8aab760105b0535cc04c6f1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 19 Dec 2019 10:21:30 -0500 Subject: Remove SERD_NOTHING node type --- src/env.c | 1 - src/node.c | 2 +- src/writer.c | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/env.c b/src/env.c index 488e52fe..c99d2bc4 100644 --- a/src/env.c +++ b/src/env.c @@ -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: { diff --git a/src/node.c b/src/node.c index 3bf013c4..ac21c295 100644 --- a/src/node.c +++ b/src/node.c @@ -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; -- cgit v1.2.1