diff options
author | David Robillard <d@drobilla.net> | 2025-03-13 11:45:57 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2025-03-16 20:26:27 -0400 |
commit | e0e3cf8411e2de999a2184570ff9bfbaf3619d1d (patch) | |
tree | 44b7327bd267084244f7f06c58ae82928dd18b55 | |
parent | 3d930510f6038b79daba186921bfac8a45aa8655 (diff) | |
download | serd-e0e3cf8411e2de999a2184570ff9bfbaf3619d1d.tar.gz serd-e0e3cf8411e2de999a2184570ff9bfbaf3619d1d.tar.bz2 serd-e0e3cf8411e2de999a2184570ff9bfbaf3619d1d.zip |
Remove redundant initialization
-rw-r--r-- | src/writer.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/writer.c b/src/writer.c index 7b14133f..61d3fe8d 100644 --- a/src/writer.c +++ b/src/writer.c @@ -44,13 +44,6 @@ typedef struct { bool comma_indented; } WriteContext; -static const WriteContext WRITE_CONTEXT_NULL = {CTX_NAMED, - {0, 0, 0, 0, SERD_NOTHING}, - {0, 0, 0, 0, SERD_NOTHING}, - {0, 0, 0, 0, SERD_NOTHING}, - 0U, - 0U}; - typedef enum { SEP_NONE, ///< Sentinel after "nothing" SEP_NEWLINE, ///< Sentinel after a line end @@ -1123,8 +1116,7 @@ serd_writer_new(const SerdSyntax syntax, assert(env); assert(ssink); - const WriteContext context = WRITE_CONTEXT_NULL; - SerdWriter* writer = (SerdWriter*)calloc(1, sizeof(SerdWriter)); + SerdWriter* writer = (SerdWriter*)calloc(1, sizeof(SerdWriter)); writer->syntax = syntax; writer->style = style; @@ -1133,7 +1125,6 @@ serd_writer_new(const SerdSyntax syntax, writer->root_uri = SERD_URI_NULL; writer->base_uri = base_uri ? *base_uri : SERD_URI_NULL; writer->anon_stack = serd_stack_new(SERD_PAGE_SIZE); - writer->context = context; writer->byte_sink = serd_byte_sink_new( ssink, stream, (style & SERD_STYLE_BULK) ? SERD_PAGE_SIZE : 1); |