[gtk+/wip/cssvalue: 66/164] shadow: Remove _gtk_shadow_get_resolved()



commit 3ff90ca30d9b2cfa02ac30cb80484098bc98d82b
Author: Benjamin Otte <otte redhat com>
Date:   Wed Mar 28 01:18:55 2012 +0200

    shadow: Remove _gtk_shadow_get_resolved()
    
    It's unused

 gtk/gtkshadow.c        |   13 -------------
 gtk/gtkshadowprivate.h |    1 -
 2 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/gtk/gtkshadow.c b/gtk/gtkshadow.c
index 4216864..c3b1f09 100644
--- a/gtk/gtkshadow.c
+++ b/gtk/gtkshadow.c
@@ -115,7 +115,6 @@ struct _GtkShadow {
   GList *elements;
 
   guint ref_count;
-  gboolean resolved;
 };
 
 GtkShadow *
@@ -125,7 +124,6 @@ _gtk_shadow_new (void)
 
   retval = g_slice_new0 (GtkShadow);
   retval->ref_count = 1;
-  retval->resolved = FALSE;
 
   return retval;
 }
@@ -140,12 +138,6 @@ _gtk_shadow_ref (GtkShadow *shadow)
   return shadow;
 }
 
-gboolean
-_gtk_shadow_get_resolved (GtkShadow *shadow)
-{
-  return shadow->resolved;
-}
-
 void
 _gtk_shadow_unref (GtkShadow *shadow)
 {
@@ -191,9 +183,6 @@ _gtk_shadow_resolve (GtkShadow       *shadow,
   GdkRGBA color;
   GList *l;
 
-  if (shadow->resolved)
-    return _gtk_shadow_ref (shadow);
-
   resolved_shadow = _gtk_shadow_new ();
 
   for (l = shadow->elements; l != NULL; l = l->next)
@@ -217,8 +206,6 @@ _gtk_shadow_resolve (GtkShadow       *shadow,
         g_list_append (resolved_shadow->elements, resolved_element);
     }
 
-  resolved_shadow->resolved = TRUE;
-
   return resolved_shadow;
 }
 
diff --git a/gtk/gtkshadowprivate.h b/gtk/gtkshadowprivate.h
index cd479f0..c4fc035 100644
--- a/gtk/gtkshadowprivate.h
+++ b/gtk/gtkshadowprivate.h
@@ -53,7 +53,6 @@ void       _gtk_shadow_print          (GtkShadow          *shadow,
 
 GtkShadow *_gtk_shadow_resolve        (GtkShadow          *shadow,
                                        GtkStyleContext    *context);
-gboolean   _gtk_shadow_get_resolved   (GtkShadow          *shadow);
 
 void       _gtk_text_shadow_paint_layout (GtkShadow       *shadow,
                                           cairo_t         *cr,



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