aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-21 23:01:28 +0000
committerDavid Robillard <d@drobilla.net>2011-01-21 23:01:28 +0000
commit87e4ef197ee3259a75c68bd3054c2cf0cbaa9f0f (patch)
tree361e6276a6837321d34a2f4059122585c34cc2cb /src/writer.c
parent187a60b1e0e80e44b5be52a7054585f0be35ca9f (diff)
downloadserd-87e4ef197ee3259a75c68bd3054c2cf0cbaa9f0f.tar.gz
serd-87e4ef197ee3259a75c68bd3054c2cf0cbaa9f0f.tar.bz2
serd-87e4ef197ee3259a75c68bd3054c2cf0cbaa9f0f.zip
Remove unnecessary writer->prev_o.
git-svn-id: http://svn.drobilla.net/serd/trunk@29 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/writer.c b/src/writer.c
index 17179c60..7c31106b 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -50,7 +50,6 @@ struct SerdWriterImpl {
const SerdString* prev_g;
const SerdString* prev_s;
const SerdString* prev_p;
- const SerdString* prev_o;
unsigned indent;
};
@@ -298,7 +297,6 @@ serd_writer_write_statement_abbrev(SerdWriter writer,
writer->prev_g = graph;
writer->prev_s = subject;
writer->prev_p = predicate;
- writer->prev_o = object;
return true;
}
@@ -353,7 +351,6 @@ serd_writer_new(SerdSyntax syntax,
writer->prev_g = 0;
writer->prev_s = 0;
writer->prev_p = 0;
- writer->prev_o = 0;
writer->indent = 0;
writer->write_node = write_node;
if ((style & SERD_STYLE_ABBREVIATED)) {
@@ -373,8 +370,7 @@ serd_writer_set_base_uri(SerdWriter writer,
if (writer->syntax != SERD_NTRIPLES) {
if (writer->prev_g || writer->prev_s) {
writer->sink(" .\n\n", 4, writer->stream);
- writer->prev_g = writer->prev_s =
- writer->prev_p = writer->prev_o = 0;
+ writer->prev_g = writer->prev_s = writer->prev_p = 0;
}
writer->sink("@base ", 6, writer->stream);
writer->sink(" <", 2, writer->stream);
@@ -395,7 +391,6 @@ serd_writer_set_prefix(SerdWriter writer,
writer->prev_g = 0;
writer->prev_s = 0;
writer->prev_p = 0;
- writer->prev_o = 0;
}
writer->sink("@prefix ", 8, writer->stream);
writer->sink(name->buf, name->n_bytes - 1, writer->stream);