[librsvg] Remove unused argument from rsvg_parse_style()



commit 230bd917da295a778896a26f78d98fc7be03a679
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Feb 8 18:08:49 2018 -0600

    Remove unused argument from rsvg_parse_style()

 rsvg-styles.c    | 4 ++--
 rsvg-styles.h    | 2 +-
 rust/src/stop.rs | 8 ++++----
 3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/rsvg-styles.c b/rsvg-styles.c
index 6667ab00..bae19b7d 100644
--- a/rsvg-styles.c
+++ b/rsvg-styles.c
@@ -1069,7 +1069,7 @@ parse_style_value (const gchar *string, gchar **value, gboolean *important)
    implementation will happen later.
 */
 void
-rsvg_parse_style (RsvgHandle * ctx, RsvgState * state, const char *str)
+rsvg_parse_style (RsvgState *state, const char *str)
 {
     gchar **styles;
     guint i;
@@ -1482,7 +1482,7 @@ rsvg_parse_style_attrs (RsvgHandle *ctx,
         const char *value;
 
         if ((value = rsvg_property_bag_lookup (atts, "style")) != NULL)
-            rsvg_parse_style (ctx, state, value);
+            rsvg_parse_style (state, value);
 
         if ((value = rsvg_property_bag_lookup (atts, "transform")) != NULL) {
             if (!rsvg_parse_transform_attr (ctx, state, value)) {
diff --git a/rsvg-styles.h b/rsvg-styles.h
index b89f2c14..89673298 100644
--- a/rsvg-styles.h
+++ b/rsvg-styles.h
@@ -210,7 +210,7 @@ void rsvg_state_free_all    (RsvgState * state);
 G_GNUC_INTERNAL
 void rsvg_parse_style_pairs (RsvgState * state, RsvgPropertyBag * atts);
 G_GNUC_INTERNAL
-void rsvg_parse_style      (RsvgHandle * ctx, RsvgState * state, const char *str);
+void rsvg_parse_style      (RsvgState *state, const char *str);
 G_GNUC_INTERNAL
 void rsvg_parse_cssbuffer   (RsvgHandle * ctx, const char *buff, size_t buflen);
 G_GNUC_INTERNAL
diff --git a/rust/src/stop.rs b/rust/src/stop.rs
index e29a72c6..0cc1f628 100644
--- a/rust/src/stop.rs
+++ b/rust/src/stop.rs
@@ -59,7 +59,7 @@ fn validate_offset(length: RsvgLength) -> Result<RsvgLength, AttributeError> {
 }
 
 impl NodeTrait for NodeStop {
-    fn set_atts (&self, node: &RsvgNode, handle: *const RsvgHandle, pbag: &PropertyBag) -> NodeResult {
+    fn set_atts (&self, node: &RsvgNode, _: *const RsvgHandle, pbag: &PropertyBag) -> NodeResult {
         let length = property_bag::parse_or_default (pbag, "offset", LengthDir::Both,
                                                      Some(validate_offset))?;
         assert! (length.unit == LengthUnit::Default || length.unit == LengthUnit::Percent);
@@ -77,7 +77,7 @@ impl NodeTrait for NodeStop {
 
         if let Some (v) = pbag.lookup("style") {
             unsafe {
-                rsvg_parse_style (handle, state, v.to_glib_none ().0);
+                rsvg_parse_style (state, v.to_glib_none ().0);
             }
         }
 
@@ -172,8 +172,8 @@ fn u32_from_rgba (rgba: cssparser::RGBA) -> u32 {
 }
 
 extern "C" {
-    fn rsvg_parse_style_pairs (state: *mut RsvgState, pbag: FfiRsvgPropertyBag);
-    fn rsvg_parse_style (handle: *const RsvgHandle, state: *mut RsvgState, string: *const libc::c_char);
+    fn rsvg_parse_style_pairs(state: *mut RsvgState, pbag: FfiRsvgPropertyBag);
+    fn rsvg_parse_style(state: *mut RsvgState, string: *const libc::c_char);
 }
 
 #[no_mangle]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]