[librsvg: 53/95] rsvg_property_bag_enumerate(): Removed.
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 53/95] rsvg_property_bag_enumerate(): Removed.
- Date: Thu, 22 Feb 2018 03:17:35 +0000 (UTC)
commit 514ccd4429cc985dc6c9c018fbf4f5b51dfb27db
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Feb 20 19:18:57 2018 -0600
rsvg_property_bag_enumerate(): Removed.
rsvg-private.h | 6 ------
rust/src/lib.rs | 1 -
rust/src/property_bag.rs | 19 -------------------
3 files changed, 26 deletions(-)
---
diff --git a/rsvg-private.h b/rsvg-private.h
index 15d8e6d2..ac5713e8 100644
--- a/rsvg-private.h
+++ b/rsvg-private.h
@@ -446,12 +446,6 @@ const char *rsvg_property_bag_lookup (RsvgPropertyBag bag, const cha
G_GNUC_INTERNAL
guint rsvg_property_bag_size (RsvgPropertyBag bag);
-/* Implemented in rust/src/property_bag.rs */
-G_GNUC_INTERNAL
-void rsvg_property_bag_enumerate (RsvgPropertyBag bag,
- RsvgPropertyBagEnumFunc func,
- gpointer user_data);
-
typedef struct RsvgPropertyBagIter *RsvgPropertyBagIter;
/* Implemented in rust/src/property_bag.rs */
diff --git a/rust/src/lib.rs b/rust/src/lib.rs
index 77ed6cd6..170207fb 100644
--- a/rust/src/lib.rs
+++ b/rust/src/lib.rs
@@ -129,7 +129,6 @@ pub use pattern::{
};
pub use property_bag::{
- rsvg_property_bag_enumerate,
rsvg_property_bag_free,
rsvg_property_bag_iter_begin,
rsvg_property_bag_iter_end,
diff --git a/rust/src/property_bag.rs b/rust/src/property_bag.rs
index 635b1267..7ff4a572 100644
--- a/rust/src/property_bag.rs
+++ b/rust/src/property_bag.rs
@@ -81,14 +81,6 @@ impl<'a> PropertyBag<'a> {
self.lookup_cstr(&k).map(|v| v.to_str().unwrap())
}
- pub fn enumerate(&self,
- enum_fn: fn (key: *const libc::c_char, val: *const libc::c_char, data: *const libc::c_void),
- data: *const libc::c_void) {
- for (k, v) in &self.0 {
- enum_fn(k.as_ptr(), v.as_ptr(), data);
- }
- }
-
pub fn iter(&self) -> PropertyBagIter {
PropertyBagIter(self.cstr_iter())
}
@@ -136,17 +128,6 @@ pub extern fn rsvg_property_bag_size(pbag: *const PropertyBag) -> libc::c_uint {
}
}
-#[no_mangle]
-pub extern fn rsvg_property_bag_enumerate(pbag: *const PropertyBag,
- enum_fn: fn (key: *const libc::c_char, val: *const libc::c_char,
data: *const libc::c_void),
- data: *const libc::c_void) {
- unsafe {
- let pbag = &*pbag;
-
- pbag.enumerate(enum_fn, data);
- }
-}
-
#[no_mangle]
pub extern fn rsvg_property_bag_lookup(pbag: *const PropertyBag,
raw_key: *const libc::c_char) -> *const libc::c_char {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]