[librsvg] Remove unused function



commit 22bbadb3cfcd6113e2c24dbc8bd64c49b59d8802
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Oct 3 09:19:35 2018 -0500

    Remove unused function

 librsvg/rsvg-private.h    |  8 --------
 rsvg_internals/src/css.rs | 23 +----------------------
 rsvg_internals/src/lib.rs |  1 -
 3 files changed, 1 insertion(+), 31 deletions(-)
---
diff --git a/librsvg/rsvg-private.h b/librsvg/rsvg-private.h
index fdc46991..24e54848 100644
--- a/librsvg/rsvg-private.h
+++ b/librsvg/rsvg-private.h
@@ -198,14 +198,6 @@ RsvgCssStyles *rsvg_css_styles_new (void);
 G_GNUC_INTERNAL
 void rsvg_css_styles_free (RsvgCssStyles *styles);
 
-/* Implemented in rsvg_internals/src/css.rs */
-G_GNUC_INTERNAL
-void rsvg_css_styles_define (RsvgCssStyles *styles,
-                             const char *selector,
-                             const char *style_name,
-                             const char *style_value,
-                             gboolean important);
-
 /* Implemented in rsvg_internals/src/css.rs */
 G_GNUC_INTERNAL
 void rsvg_css_parse_into_handle (RsvgHandle *handle,
diff --git a/rsvg_internals/src/css.rs b/rsvg_internals/src/css.rs
index 40151ddd..8111fef6 100644
--- a/rsvg_internals/src/css.rs
+++ b/rsvg_internals/src/css.rs
@@ -7,7 +7,7 @@ use std::str::{self, FromStr};
 use libc;
 
 use glib::translate::*;
-use glib_sys::{self, gboolean, gpointer, GList};
+use glib_sys::{gboolean, gpointer, GList};
 
 use attributes::Attribute;
 use croco::*;
@@ -237,27 +237,6 @@ pub unsafe extern "C" fn rsvg_css_styles_free(raw_styles: *mut RsvgCssStyles) {
     Box::from_raw(raw_styles as *mut CssStyles);
 }
 
-#[no_mangle]
-pub extern "C" fn rsvg_css_styles_define(
-    raw_styles: *mut RsvgCssStyles,
-    selector: *const libc::c_char,
-    prop_name: *const libc::c_char,
-    prop_value: *const libc::c_char,
-    important: glib_sys::gboolean,
-) {
-    assert!(!raw_styles.is_null());
-    assert!(!selector.is_null());
-    assert!(!prop_name.is_null());
-    assert!(!prop_value.is_null());
-
-    let styles = unsafe { &mut *(raw_styles as *mut CssStyles) };
-    let selector = unsafe { utf8_cstr(selector) };
-    let prop_name = unsafe { utf8_cstr(prop_name) };
-    let prop_value = unsafe { utf8_cstr(prop_value) };
-
-    styles.define(selector, prop_name, prop_value, from_glib(important));
-}
-
 #[no_mangle]
 pub unsafe extern "C" fn rsvg_css_parse_into_handle(
     handle: *mut RsvgHandle,
diff --git a/rsvg_internals/src/lib.rs b/rsvg_internals/src/lib.rs
index c40204a5..2dc9d95b 100644
--- a/rsvg_internals/src/lib.rs
+++ b/rsvg_internals/src/lib.rs
@@ -30,7 +30,6 @@ pub use color::{rsvg_css_parse_color, ColorKind, ColorSpec};
 
 pub use css::{
     rsvg_css_parse_into_handle,
-    rsvg_css_styles_define,
     rsvg_css_styles_free,
     rsvg_css_styles_new,
 };


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