[librsvg: 1/3] state: cleanup unused exports and declarations



commit 3ce73ba56d778047b3177e843a819f58950ee26d
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Sep 2 11:52:05 2018 +0200

    state: cleanup unused exports and declarations
    
    The C side does not call these state functions anymore

 librsvg/rsvg-styles.h     | 21 +++------------------
 rsvg_internals/src/lib.rs |  2 +-
 2 files changed, 4 insertions(+), 19 deletions(-)
---
diff --git a/librsvg/rsvg-styles.h b/librsvg/rsvg-styles.h
index 596f1151..7ba81672 100644
--- a/librsvg/rsvg-styles.h
+++ b/librsvg/rsvg-styles.h
@@ -27,32 +27,17 @@
 #ifndef RSVG_STYLES_H
 #define RSVG_STYLES_H
 
-#include <cairo.h>
-#include "rsvg.h"
-#include "rsvg-css.h"
-
-#include <libxml/SAX.h>
+#include <glib.h>
+#include "rsvg-private.h"
 
 G_BEGIN_DECLS 
 
-/* Defined in rsvg_internals/src/state.rs */
-G_GNUC_INTERNAL
-void rsvg_state_free (RsvgState *state);
-
 G_GNUC_INTERNAL
 void rsvg_parse_cssbuffer (RsvgHandle *handle, const char *buff, size_t buflen);
 
-/* Defined in rsvg_internals/src/state.rs */
-G_GNUC_INTERNAL
-void rsvg_parse_style_attrs (RsvgHandle *handle, RsvgNode *node, const char *tag, RsvgPropertyBag * atts);
-
 G_GNUC_INTERNAL
 gboolean rsvg_lookup_apply_css_style (RsvgHandle *handle, const char *target, RsvgState * state);
 
-/* Defined in rsvg_internals/src/state.rs */
-G_GNUC_INTERNAL
-RsvgState *rsvg_state_parent (RsvgState *state);
-
 G_END_DECLS
 
-#endif                          /* RSVG_STYLES_H */
+#endif /* RSVG_STYLES_H */
diff --git a/rsvg_internals/src/lib.rs b/rsvg_internals/src/lib.rs
index ca0b2a2b..37522218 100644
--- a/rsvg_internals/src/lib.rs
+++ b/rsvg_internals/src/lib.rs
@@ -71,7 +71,7 @@ pub use property_bag::{
     rsvg_property_bag_new,
 };
 
-pub use state::{rsvg_state_free, rsvg_state_new, rsvg_state_parse_style_pair};
+pub use state::rsvg_state_parse_style_pair;
 
 pub use structure::rsvg_node_svg_get_size;
 


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