diff options
author | David Robillard <d@drobilla.net> | 2019-12-19 10:21:30 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-12-19 10:21:30 -0500 |
commit | 82af4d09d7f08f25c160971e92d760b0147ad0fa (patch) | |
tree | bdd410b02121c1265cb2b7b08223b2a017a45e1a | |
parent | d56310496ba0999e1f80b39d7c1fb7ea707d60c6 (diff) | |
download | serd-82af4d09d7f08f25c160971e92d760b0147ad0fa.tar.gz serd-82af4d09d7f08f25c160971e92d760b0147ad0fa.tar.bz2 serd-82af4d09d7f08f25c160971e92d760b0147ad0fa.zip |
Remove SERD_NOTHING node type
-rw-r--r-- | serd/serd.h | 7 | ||||
-rw-r--r-- | src/node.c | 2 |
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). @@ -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* |