[librsvg: 10/14] handle: remove now unused function



commit afddeb9d8c574a073ae78c6607aba427fdcc2fdf
Author: Paolo Borelli <pborelli gnome org>
Date:   Sat Jan 5 22:54:43 2019 +0100

    handle: remove now unused function

 librsvg/rsvg-handle.c        |  1 -
 rsvg_internals/src/handle.rs | 13 -------------
 rsvg_internals/src/lib.rs    |  1 -
 3 files changed, 15 deletions(-)
---
diff --git a/librsvg/rsvg-handle.c b/librsvg/rsvg-handle.c
index d05c2550..c72fca47 100644
--- a/librsvg/rsvg-handle.c
+++ b/librsvg/rsvg-handle.c
@@ -221,7 +221,6 @@ rsvg_size_closure_call (RsvgSizeClosure *closure, int *width, int *height)
 }
 
 extern void rsvg_handle_rust_set_size_closure (RsvgHandleRust *raw_handle, RsvgSizeClosure *closure);
-extern void rsvg_handle_rust_call_size_closure (RsvgHandleRust *raw_handle, int *width, int *height);
 
 struct RsvgHandlePrivate {
     gchar *base_uri; // Keep this here; since rsvg_handle_get_base_uri() returns a const char *
diff --git a/rsvg_internals/src/handle.rs b/rsvg_internals/src/handle.rs
index a31f55bc..c397cdc2 100644
--- a/rsvg_internals/src/handle.rs
+++ b/rsvg_internals/src/handle.rs
@@ -846,19 +846,6 @@ pub unsafe extern "C" fn rsvg_handle_rust_set_size_closure(
     rhandle.size_closure = closure;
 }
 
-#[no_mangle]
-pub unsafe extern "C" fn rsvg_handle_rust_call_size_closure(
-    raw_handle: *const Handle,
-    width: *mut libc::c_int,
-    height: *mut libc::c_int,
-) {
-    let rhandle = &*raw_handle;
-
-    if !rhandle.size_closure.is_null() {
-        rsvg_size_closure_call(rhandle.size_closure, width, height);
-    }
-}
-
 #[no_mangle]
 pub unsafe extern "C" fn rsvg_handle_rust_set_testing(
     raw_handle: *const Handle,
diff --git a/rsvg_internals/src/lib.rs b/rsvg_internals/src/lib.rs
index 9b18eab5..be0da3a1 100644
--- a/rsvg_internals/src/lib.rs
+++ b/rsvg_internals/src/lib.rs
@@ -37,7 +37,6 @@ extern crate lazy_static;
 pub use color::{rsvg_css_parse_color, ColorKind, ColorSpec};
 
 pub use handle::{
-    rsvg_handle_rust_call_size_closure,
     rsvg_handle_rust_close,
     rsvg_handle_rust_free,
     rsvg_handle_rust_get_base_gfile,


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