diff options
author | David Robillard <d@drobilla.net> | 2018-07-08 16:40:45 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-11-25 22:12:47 +0100 |
commit | b82920ddbd6c401a033ed1ff507379fdf7fcbc03 (patch) | |
tree | 16ad743ab87b437ba8b553af3dee42fab5dd5aeb /src | |
parent | f5e1b264ae4098d4edd70604d57adb60abbed224 (diff) | |
download | serd-b82920ddbd6c401a033ed1ff507379fdf7fcbc03.tar.gz serd-b82920ddbd6c401a033ed1ff507379fdf7fcbc03.tar.bz2 serd-b82920ddbd6c401a033ed1ff507379fdf7fcbc03.zip |
Remove serd_reader_set_default_graph
This is easily handled by the sink. In particular, the inserter already
contains this functionality.
Diffstat (limited to 'src')
-rw-r--r-- | src/reader.c | 12 | ||||
-rw-r--r-- | src/reader.h | 1 |
2 files changed, 0 insertions, 13 deletions
diff --git a/src/reader.c b/src/reader.c index 38b8a8b0..94387171 100644 --- a/src/reader.c +++ b/src/reader.c @@ -115,8 +115,6 @@ emit_statement(SerdReader* reader, ReadContext ctx, SerdNode* o) SerdNode* graph = ctx.graph; if (!reader->sink->statement) { return SERD_SUCCESS; - } else if (!graph && reader->default_graph) { - graph = reader->default_graph; } /* Zero the pad of the object node on the top of the stack. Lower nodes @@ -168,7 +166,6 @@ serd_reader_new(SerdWorld* world, me->world = world; me->sink = sink; - me->default_graph = NULL; me->stack = serd_stack_new(stack_size); me->syntax = syntax; me->next_id = 1; @@ -191,7 +188,6 @@ void serd_reader_free(SerdReader* reader) { serd_reader_finish(reader); - serd_node_free(reader->default_graph); #ifdef SERD_STACK_CHECK free(reader->allocs); @@ -215,14 +211,6 @@ serd_reader_add_blank_prefix(SerdReader* reader, } } -void -serd_reader_set_default_graph(SerdReader* reader, - const SerdNode* graph) -{ - serd_node_free(reader->default_graph); - reader->default_graph = serd_node_copy(graph); -} - static SerdStatus skip_bom(SerdReader* me) { diff --git a/src/reader.h b/src/reader.h index d803d9d9..f00ecd2d 100644 --- a/src/reader.h +++ b/src/reader.h @@ -51,7 +51,6 @@ struct SerdReaderImpl { SerdNode* rdf_first; SerdNode* rdf_rest; SerdNode* rdf_nil; - SerdNode* default_graph; SerdByteSource source; SerdStack stack; SerdSyntax syntax; |