Commit 38ac6879 authored by Benjamin Otte's avatar Benjamin Otte

shadow: Remove _gtk_shadow_get_resolved()

It's unused
parent ca4a080c
......@@ -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;
}
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment