[librsvg/rustification] Make rsvg_node_set_atts() static



commit b4d5be4d9ddc1ecbfe6c4fff4e9e886520cdd4d6
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Nov 17 07:34:57 2016 -0600

    Make rsvg_node_set_atts() static
    
    It is only used in rsvg-base.c anyway; rename it to node_set_atts().

 rsvg-base.c    |   14 +++++++-------
 rsvg-private.h |    3 +--
 2 files changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/rsvg-base.c b/rsvg-base.c
index 9119b62..00fb9c5 100644
--- a/rsvg-base.c
+++ b/rsvg-base.c
@@ -240,6 +240,12 @@ free_element_name_stack (RsvgHandle *ctx)
 }
 
 static void
+node_set_atts (RsvgNode * node, RsvgHandle * ctx, RsvgPropertyBag * atts)
+{
+    node->set_atts (node, ctx, atts);
+}
+
+static void
 rsvg_standard_element_start (RsvgHandle * ctx, const char *name, RsvgPropertyBag * atts)
 {
     /*replace this stuff with a hash for fast reading! */
@@ -367,7 +373,7 @@ rsvg_standard_element_start (RsvgHandle * ctx, const char *name, RsvgPropertyBag
 
         add_node_to_handle (ctx, newnode);
         register_node_in_defs (ctx, newnode, atts);
-        rsvg_node_set_atts (newnode, ctx, atts);
+        node_set_atts (newnode, ctx, atts);
 
         if (ctx->priv->currentnode) {
             rsvg_node_group_pack (ctx->priv->currentnode, newnode);
@@ -2092,12 +2098,6 @@ rsvg_cleanup (void)
 }
 
 void
-rsvg_node_set_atts (RsvgNode * node, RsvgHandle * ctx, RsvgPropertyBag * atts)
-{
-    node->set_atts (node, ctx, atts);
-}
-
-void
 rsvg_pop_discrete_layer (RsvgDrawingCtx * ctx)
 {
     ctx->render->pop_discrete_layer (ctx);
diff --git a/rsvg-private.h b/rsvg-private.h
index cda6f03..62ea2cc 100644
--- a/rsvg-private.h
+++ b/rsvg-private.h
@@ -406,8 +406,7 @@ G_GNUC_INTERNAL
 GdkPixbuf *rsvg_cairo_surface_to_pixbuf (cairo_surface_t *surface);
 G_GNUC_INTERNAL
 cairo_surface_t *rsvg_get_surface_of_node (RsvgDrawingCtx * ctx, RsvgNode * drawable, double w, double h);
-G_GNUC_INTERNAL
-void rsvg_node_set_atts (RsvgNode * node, RsvgHandle * ctx, RsvgPropertyBag * atts);
+
 G_GNUC_INTERNAL
 void rsvg_drawing_ctx_free (RsvgDrawingCtx * handle);
 G_GNUC_INTERNAL


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