diff options
author | David Robillard <d@drobilla.net> | 2018-12-26 20:04:27 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-12-31 11:37:48 -0500 |
commit | b69236b298c0263f7233562d83df5e6278def5a7 (patch) | |
tree | d8115def2a042cd355170202df5f8b46ec7960fb /src/reader.c | |
parent | 08bf8fdb616ed4a753cc6f0092f3dea9e520a96f (diff) | |
download | serd-b69236b298c0263f7233562d83df5e6278def5a7.tar.gz serd-b69236b298c0263f7233562d83df5e6278def5a7.tar.bz2 serd-b69236b298c0263f7233562d83df5e6278def5a7.zip |
Remove Remove serd_reader_set_default_graph()
Diffstat (limited to 'src/reader.c')
-rw-r--r-- | src/reader.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/reader.c b/src/reader.c index 5dc86f1e..39056d4c 100644 --- a/src/reader.c +++ b/src/reader.c @@ -118,8 +118,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 @@ -171,7 +169,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; @@ -194,7 +191,6 @@ void serd_reader_free(SerdReader* reader) { serd_reader_finish(reader); - serd_node_free(reader->default_graph); #ifdef SERD_STACK_CHECK free(reader->allocs); @@ -218,14 +214,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) { |