[librsvg/rustification] Make rsvg_state_override() static



commit 9bbadebb7d4d09b3d5efb65b7ca0b4461b9bd10c
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Nov 9 17:55:54 2016 -0600

    Make rsvg_state_override() static
    
    It is only used within rsvg-styles.c

 rsvg-styles.c |    6 +++---
 rsvg-styles.h |    3 +--
 2 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/rsvg-styles.c b/rsvg-styles.c
index 03fdefb..c5089e0 100644
--- a/rsvg-styles.c
+++ b/rsvg-styles.c
@@ -508,8 +508,8 @@ clonefunction (int dst, int src)
     return 1;
 }
 
-void
-rsvg_state_override (RsvgState * dst, const RsvgState * src)
+static void
+state_override (RsvgState * dst, const RsvgState * src)
 {
     rsvg_state_inherit_run (dst, src, clonefunction, 0);
 }
@@ -1718,7 +1718,7 @@ rsvg_state_reinherit_top (RsvgDrawingCtx * ctx, RsvgState * state, int dominate)
     /*This is a special domination mode for patterns, the transform
        is simply left as is, wheras the style is totally overridden */
     if (dominate == 2) {
-        rsvg_state_override (current, state);
+        state_override (current, state);
     } else {
         RsvgState *parent= rsvg_state_parent (current);
         rsvg_state_clone (current, state);
diff --git a/rsvg-styles.h b/rsvg-styles.h
index d02bbb0..bf64833 100644
--- a/rsvg-styles.h
+++ b/rsvg-styles.h
@@ -201,8 +201,7 @@ G_GNUC_INTERNAL
 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_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]