[librsvg: 57/95] rsvg_property_bag_size(): Removed.



commit e27b314c9966ed061a7d3a4ce4c5a4e73cb21c7e
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Feb 20 20:29:49 2018 -0600

    rsvg_property_bag_size(): Removed.

 rsvg-private.h           | 4 ----
 rust/src/lib.rs          | 1 -
 rust/src/property_bag.rs | 9 ---------
 3 files changed, 14 deletions(-)
---
diff --git a/rsvg-private.h b/rsvg-private.h
index ac5713e8..058c715c 100644
--- a/rsvg-private.h
+++ b/rsvg-private.h
@@ -442,10 +442,6 @@ void                 rsvg_property_bag_free      (RsvgPropertyBag bag);
 G_GNUC_INTERNAL
 const char          *rsvg_property_bag_lookup    (RsvgPropertyBag bag, const char *key);
 
-/* Implemented in rust/src/property_bag.rs */
-G_GNUC_INTERNAL
-guint                rsvg_property_bag_size         (RsvgPropertyBag bag);
-
 typedef struct RsvgPropertyBagIter *RsvgPropertyBagIter;
 
 /* Implemented in rust/src/property_bag.rs */
diff --git a/rust/src/lib.rs b/rust/src/lib.rs
index 170207fb..4860a0d3 100644
--- a/rust/src/lib.rs
+++ b/rust/src/lib.rs
@@ -135,7 +135,6 @@ pub use property_bag::{
     rsvg_property_bag_iter_next,
     rsvg_property_bag_lookup,
     rsvg_property_bag_new,
-    rsvg_property_bag_size,
 };
 
 pub use shapes::{
diff --git a/rust/src/property_bag.rs b/rust/src/property_bag.rs
index 7ff4a572..d1cd9912 100644
--- a/rust/src/property_bag.rs
+++ b/rust/src/property_bag.rs
@@ -119,15 +119,6 @@ pub extern fn rsvg_property_bag_free(pbag: *mut PropertyBag) {
     }
 }
 
-#[no_mangle]
-pub extern fn rsvg_property_bag_size(pbag: *const PropertyBag) -> libc::c_uint {
-    unsafe {
-        let pbag = &*pbag;
-
-        pbag.len() as libc::c_uint
-    }
-}
-
 #[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]