[librsvg/librsvg-2.44] Remove unused function
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/librsvg-2.44] Remove unused function
- Date: Tue, 9 Oct 2018 14:18:53 +0000 (UTC)
commit 337c5d090dfed6fb9c4808c1b188fe6b06dc6666
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Oct 9 09:11:30 2018 -0500
Remove unused function
librsvg/rsvg-private.h | 8 --------
rsvg_internals/src/css.rs | 23 +----------------------
rsvg_internals/src/lib.rs | 7 +------
3 files changed, 2 insertions(+), 36 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 7c9f0dfb..3bd41a1c 100644
--- a/rsvg_internals/src/lib.rs
+++ b/rsvg_internals/src/lib.rs
@@ -30,12 +30,7 @@ extern crate downcast_rs;
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,
-};
+pub use css::{rsvg_css_parse_into_handle, rsvg_css_styles_free, rsvg_css_styles_new};
pub use defs::{rsvg_defs_free, rsvg_defs_lookup, rsvg_defs_new};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]