Remove unused function

parent c0b1ee9e
Pipeline #33675 failed with stages
in 19 minutes and 12 seconds
......@@ -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,
......
......@@ -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,
......
......@@ -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,
};
......
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