Remove unnecessary argument

parent 18773041
......@@ -748,7 +748,7 @@ rsvg_start_xinclude (RsvgHandle * ctx, RsvgPropertyBag * atts)
xml_parser = xmlCreatePushParserCtxt (&rsvgSAXHandlerStruct, ctx, NULL, 0, NULL);
rsvg_set_xml_parse_options(xml_parser, ctx);
buffer = _rsvg_xml_input_buffer_new_from_stream (stream, NULL /* cancellable */, XML_CHAR_ENCODING_NONE, &err);
buffer = _rsvg_xml_input_buffer_new_from_stream (stream, NULL /* cancellable */, &err);
g_object_unref (stream);
input = xmlNewIOInputStream (xml_parser, buffer /* adopts */, XML_CHAR_ENCODING_NONE);
......@@ -2078,7 +2078,7 @@ rsvg_handle_read_stream_sync (RsvgHandle *handle,
priv->cancellable = cancellable ? g_object_ref (cancellable) : NULL;
create_xml_push_parser_ctxt (handle);
buffer = _rsvg_xml_input_buffer_new_from_stream (stream, cancellable, XML_CHAR_ENCODING_NONE, &err);
buffer = _rsvg_xml_input_buffer_new_from_stream (stream, cancellable, &err);
input = xmlNewIOInputStream (priv->ctxt, buffer, XML_CHAR_ENCODING_NONE);
if (xmlPushInput (priv->ctxt, input) < 0) {
......
......@@ -74,7 +74,6 @@ context_close (RsvgXmlInputStreamContext *context)
xmlParserInputBufferPtr
_rsvg_xml_input_buffer_new_from_stream (GInputStream *stream,
GCancellable *cancellable,
xmlCharEncoding enc,
GError **error)
{
......@@ -92,5 +91,5 @@ _rsvg_xml_input_buffer_new_from_stream (GInputStream *stream,
return xmlParserInputBufferCreateIO ((xmlInputReadCallback) context_read,
(xmlInputCloseCallback) context_close,
context,
enc);
XML_CHAR_ENCODING_NONE);
}
......@@ -27,7 +27,6 @@ G_BEGIN_DECLS
xmlParserInputBufferPtr _rsvg_xml_input_buffer_new_from_stream (GInputStream *stream,
GCancellable *cancellable,
xmlCharEncoding enc,
GError **error);
G_END_DECLS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment