aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/reader.c17
-rw-r--r--src/reader.h1
2 files changed, 1 insertions, 17 deletions
diff --git a/src/reader.c b/src/reader.c
index 52aa3794..b35f257a 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -111,17 +111,12 @@ push_node(SerdReader* reader, SerdType type, const char* str, size_t n_bytes)
SerdStatus
emit_statement(SerdReader* reader, ReadContext ctx, SerdNode* o)
{
- SerdNode* graph = ctx.graph;
- if (!graph && reader->default_graph) {
- graph = reader->default_graph;
- }
-
/* Zero the pad of the object node on the top of the stack. Lower nodes
(subject and predicate) were already zeroed by subsequent pushes. */
serd_node_zero_pad(o);
const SerdStatement statement = {
- { ctx.subject, ctx.predicate, o, graph },
+ { ctx.subject, ctx.predicate, o, ctx.graph },
&reader->source.cur
};
@@ -165,7 +160,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;
@@ -192,7 +186,6 @@ serd_reader_free(SerdReader* reader)
}
serd_reader_finish(reader);
- serd_node_free(reader->default_graph);
#ifdef SERD_STACK_CHECK
free(reader->allocs);
@@ -216,14 +209,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 aacc2ec8..f19038f8 100644
--- a/src/reader.h
+++ b/src/reader.h
@@ -57,7 +57,6 @@ struct SerdReaderImpl {
SerdNode* rdf_first;
SerdNode* rdf_rest;
SerdNode* rdf_nil;
- SerdNode* default_graph;
SerdByteSource source;
SerdStack stack;
SerdSyntax syntax;