[gtk+/wip/cssvalue: 66/141] shadow: Remove _gtk_shadow_get_resolved()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/cssvalue: 66/141] shadow: Remove _gtk_shadow_get_resolved()
- Date: Sat, 7 Apr 2012 17:51:41 +0000 (UTC)
commit 46632cacd65d58730a15549e6ad9da7fa8053082
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]