[librsvg: 1/5] handle: remove handle_new/free
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 1/5] handle: remove handle_new/free
- Date: Mon, 4 Mar 2019 00:51:34 +0000 (UTC)
commit 842db413b36a28d273b6c91963ecda25e70f4335
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Mar 3 11:14:42 2019 +0100
handle: remove handle_new/free
Not only they are not used anymore, but they are confusing since
we do not want to expose the rust Handle to C anymore
rsvg_internals/src/handle.rs | 11 -----------
rsvg_internals/src/lib.rs | 2 --
2 files changed, 13 deletions(-)
---
diff --git a/rsvg_internals/src/handle.rs b/rsvg_internals/src/handle.rs
index 21c6fc6e..a010e0a6 100644
--- a/rsvg_internals/src/handle.rs
+++ b/rsvg_internals/src/handle.rs
@@ -766,17 +766,6 @@ fn locale_from_environment() -> Locale {
locale
}
-#[no_mangle]
-pub unsafe extern "C" fn rsvg_handle_rust_new() -> *mut Handle {
- Box::into_raw(Box::new(Handle::new()))
-}
-
-#[no_mangle]
-pub unsafe extern "C" fn rsvg_handle_rust_free(raw_handle: *mut Handle) {
- assert!(!raw_handle.is_null());
- Box::from_raw(raw_handle);
-}
-
#[no_mangle]
pub unsafe extern "C" fn rsvg_handle_rust_set_base_url(
raw_handle: *const RsvgHandle,
diff --git a/rsvg_internals/src/lib.rs b/rsvg_internals/src/lib.rs
index df93fa7f..3258ec83 100644
--- a/rsvg_internals/src/lib.rs
+++ b/rsvg_internals/src/lib.rs
@@ -58,7 +58,6 @@ pub use error::{
pub use handle::{
rsvg_handle_rust_close,
- rsvg_handle_rust_free,
rsvg_handle_rust_get_base_gfile,
rsvg_handle_rust_get_base_url,
rsvg_handle_rust_get_dimensions,
@@ -71,7 +70,6 @@ pub use handle::{
rsvg_handle_rust_get_pixbuf_sub,
rsvg_handle_rust_get_position_sub,
rsvg_handle_rust_has_sub,
- rsvg_handle_rust_new,
rsvg_handle_rust_new_from_data,
rsvg_handle_rust_new_from_file,
rsvg_handle_rust_new_from_gfile_sync,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]