[librsvg] Remove unnecessary argument
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] Remove unnecessary argument
- Date: Wed, 4 Oct 2017 00:53:24 +0000 (UTC)
commit a589ee8d957a4aba07be64370112afa457de4ef9
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Oct 3 18:54:38 2017 -0500
Remove unnecessary argument
rsvg-base.c | 4 ++--
rsvg-xml.c | 3 +--
rsvg-xml.h | 1 -
3 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/rsvg-base.c b/rsvg-base.c
index a60d50c..f00f833 100644
--- a/rsvg-base.c
+++ b/rsvg-base.c
@@ -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) {
diff --git a/rsvg-xml.c b/rsvg-xml.c
index 31f7ef0..452a0cb 100644
--- a/rsvg-xml.c
+++ b/rsvg-xml.c
@@ -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);
}
diff --git a/rsvg-xml.h b/rsvg-xml.h
index 95158d8..c295f77 100644
--- a/rsvg-xml.h
+++ b/rsvg-xml.h
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]