aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-12-19 10:21:30 -0500
committerDavid Robillard <d@drobilla.net>2019-12-19 10:21:30 -0500
commit82af4d09d7f08f25c160971e92d760b0147ad0fa (patch)
treebdd410b02121c1265cb2b7b08223b2a017a45e1a
parentd56310496ba0999e1f80b39d7c1fb7ea707d60c6 (diff)
downloadserd-82af4d09d7f08f25c160971e92d760b0147ad0fa.tar.gz
serd-82af4d09d7f08f25c160971e92d760b0147ad0fa.tar.bz2
serd-82af4d09d7f08f25c160971e92d760b0147ad0fa.zip
Remove SERD_NOTHING node type
-rw-r--r--serd/serd.h7
-rw-r--r--src/node.c2
2 files changed, 1 insertions, 8 deletions
diff --git a/serd/serd.h b/serd/serd.h
index 91903c7e..f09d2ea8 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -154,13 +154,6 @@ typedef uint32_t SerdStatementFlags;
*/
typedef enum {
/**
- The type of a nonexistent node.
-
- This type is useful as a sentinel, but is never emitted by the reader.
- */
- SERD_NOTHING = 0,
-
- /**
Literal value.
A literal optionally has either a language, or a datatype (not both).
diff --git a/src/node.c b/src/node.c
index a5dabd33..507bf5d3 100644
--- a/src/node.c
+++ b/src/node.c
@@ -413,7 +413,7 @@ serd_node_new_blob(const void* buf, size_t size, bool wrap_lines)
SerdType
serd_node_get_type(const SerdNode* node)
{
- return node ? node->type : SERD_NOTHING;
+ return node->type;
}
const char*