[librsvg/rustification] Make rsvg_state_dominate() static



commit 68f0db920a48a34cafa91d3b9cdd8da8ee2f280c
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Nov 9 17:28:33 2016 -0600

    Make rsvg_state_dominate() static
    
    It's only used within rsvg-styles.c

 rsvg-styles.c |    6 +++---
 rsvg-styles.h |    2 --
 2 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/rsvg-styles.c b/rsvg-styles.c
index ee302f0..03fdefb 100644
--- a/rsvg-styles.c
+++ b/rsvg-styles.c
@@ -494,8 +494,8 @@ dominatefunction (int dst, int src)
     return 0;
 }
 
-void
-rsvg_state_dominate (RsvgState * dst, const RsvgState * src)
+static void
+state_dominate (RsvgState * dst, const RsvgState * src)
 {
     rsvg_state_inherit_run (dst, src, dominatefunction, 0);
 }
@@ -1724,7 +1724,7 @@ rsvg_state_reinherit_top (RsvgDrawingCtx * ctx, RsvgState * state, int dominate)
         rsvg_state_clone (current, state);
         if (parent) {
             if (dominate)
-                rsvg_state_dominate (current, parent);
+                state_dominate (current, parent);
             else
                 rsvg_state_reinherit (current, parent);
             cairo_matrix_multiply (&current->affine,
diff --git a/rsvg-styles.h b/rsvg-styles.h
index bad0425..d02bbb0 100644
--- a/rsvg-styles.h
+++ b/rsvg-styles.h
@@ -202,8 +202,6 @@ void rsvg_state_inherit     (RsvgState * dst, const RsvgState * src);
 G_GNUC_INTERNAL
 void rsvg_state_reinherit   (RsvgState * dst, const RsvgState * src);
 G_GNUC_INTERNAL
-void rsvg_state_dominate    (RsvgState * dst, const RsvgState * src);
-G_GNUC_INTERNAL
 void rsvg_state_override    (RsvgState * dst, const RsvgState * src);
 G_GNUC_INTERNAL
 void rsvg_state_free_all    (RsvgState * state);


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