From b260af75f48f3824d6fbcb634ddc285f2be4665e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 13 May 2018 00:40:00 +0200 Subject: Remove unused parameters from emit_statement --- src/n3.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/n3.c') diff --git a/src/n3.c b/src/n3.c index 8de01bd8..c1257976 100644 --- a/src/n3.c +++ b/src/n3.c @@ -958,7 +958,7 @@ read_anon(SerdReader* reader, ReadContext ctx, bool subject, SerdNode** dest) *dest = blank_id(reader); } if (ctx.subject) { - TRY_RET(emit_statement(reader, ctx, *dest, 0, 0)); + TRY_RET(emit_statement(reader, ctx, *dest)); } ctx.subject = *dest; @@ -1060,7 +1060,7 @@ read_object(SerdReader* reader, ReadContext* ctx, bool emit, bool* ate_dot) } if (ret && emit && simple) { - ret = emit_statement(reader, *ctx, o, datatype, lang); + ret = emit_statement(reader, *ctx, o); } else if (ret && !emit) { ctx->object = o; ctx->datatype = datatype; @@ -1149,7 +1149,7 @@ read_collection(SerdReader* reader, ReadContext ctx, SerdNode** dest) if (ctx.subject) { // subject predicate _:head *ctx.flags |= (end ? 0 : SERD_LIST_O_BEGIN); - TRY_RET(emit_statement(reader, ctx, *dest, 0, 0)); + TRY_RET(emit_statement(reader, ctx, *dest)); *ctx.flags |= SERD_LIST_CONT; } else { *ctx.flags |= (end ? 0 : SERD_LIST_S_BEGIN); @@ -1192,8 +1192,7 @@ read_collection(SerdReader* reader, ReadContext ctx, SerdNode** dest) // _:node rdf:rest _:rest *ctx.flags |= SERD_LIST_CONT; ctx.predicate = reader->rdf_rest; - TRY_RET(emit_statement(reader, ctx, - (end ? reader->rdf_nil : rest), 0, 0)); + TRY_RET(emit_statement(reader, ctx, (end ? reader->rdf_nil : rest))); ctx.subject = rest; // _:node = _:rest rest = node; // _:rest = (old)_:node @@ -1524,7 +1523,7 @@ read_nquadsDoc(SerdReader* reader) eat_byte_check(reader, '.'); } - if (!emit_statement(reader, ctx, ctx.object, ctx.datatype, ctx.lang)) { + if (!emit_statement(reader, ctx, ctx.object)) { break; } -- cgit v1.2.1