[librsvg: 11/12] paint_server: drop unused C function
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 11/12] paint_server: drop unused C function
- Date: Tue, 24 Apr 2018 23:15:59 +0000 (UTC)
commit 647f23f67ef4baf57a3c6e297ec6d3f874838ecb
Author: Paolo Borelli <pborelli gnome org>
Date: Mon Apr 23 23:58:40 2018 +0200
paint_server: drop unused C function
rsvg_internals/src/lib.rs | 1 -
rsvg_internals/src/paint_server.rs | 16 ----------------
2 files changed, 17 deletions(-)
---
diff --git a/rsvg_internals/src/lib.rs b/rsvg_internals/src/lib.rs
index 60820e70..15065897 100644
--- a/rsvg_internals/src/lib.rs
+++ b/rsvg_internals/src/lib.rs
@@ -86,7 +86,6 @@ pub use paint_server::{
rsvg_paint_server_parse,
rsvg_paint_server_ref,
rsvg_paint_server_unref,
- rsvg_set_source_rsvg_paint_server,
};
pub use parsers::{rsvg_css_parse_number_list, rsvg_css_parse_number_optional_number};
diff --git a/rsvg_internals/src/paint_server.rs b/rsvg_internals/src/paint_server.rs
index e5b5a6c3..98a391c0 100644
--- a/rsvg_internals/src/paint_server.rs
+++ b/rsvg_internals/src/paint_server.rs
@@ -265,22 +265,6 @@ pub fn _set_source_rsvg_paint_server(
had_paint_server
}
-#[no_mangle]
-pub extern "C" fn rsvg_set_source_rsvg_paint_server(
- c_ctx: *mut drawing_ctx::RsvgDrawingCtx,
- c_ps: *const PaintServer,
- opacity: u8,
- bbox: RsvgBbox,
- current_color: u32,
-) -> glib_sys::gboolean {
- assert!(!c_ctx.is_null());
- assert!(!c_ps.is_null());
-
- let ps = unsafe { &*c_ps };
-
- _set_source_rsvg_paint_server(c_ctx, ps, opacity, &bbox, Color::from(current_color)).to_glib()
-}
-
#[cfg(test)]
mod tests {
use super::*;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]