summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2014-10-24 21:03:36 +0200
committerBenjamin Otte <otte@redhat.com>2014-10-24 21:31:40 +0200
commite2a07805433a085541e20c24a53a9521ed028481 (patch)
tree830ad002fc19e62c27c65fdb0699e8fce4755430
parenta1f7c459b75fe47e2abb7e856e6d4a4ad5208cb9 (diff)
downloadgtk+-e2a07805433a085541e20c24a53a9521ed028481.tar.gz
styleproperties: Remove unused function
-rw-r--r--gtk/gtkstyleproperties.c29
-rw-r--r--gtk/gtkstylepropertiesprivate.h3
2 files changed, 7 insertions, 25 deletions
diff --git a/gtk/gtkstyleproperties.c b/gtk/gtkstyleproperties.c
index d751227de8..32f0f246a4 100644
--- a/gtk/gtkstyleproperties.c
+++ b/gtk/gtkstyleproperties.c
@@ -585,25 +585,6 @@ gtk_style_properties_set (GtkStyleProperties *props,
va_end (args);
}
-GtkCssValue *
-_gtk_style_properties_peek_property (GtkStyleProperties *props,
- GtkCssStyleProperty *property,
- GtkStateFlags state)
-{
- GtkStylePropertiesPrivate *priv;
- PropertyData *prop;
-
- g_return_val_if_fail (GTK_IS_STYLE_PROPERTIES (props), FALSE);
- g_return_val_if_fail (property != NULL, FALSE);
-
- priv = props->priv;
- prop = g_hash_table_lookup (priv->properties, property);
- if (prop == NULL)
- return NULL;
-
- return property_data_match_state (prop, state);
-}
-
typedef struct {
GtkStyleProperties *props;
GtkStateFlags state;
@@ -614,10 +595,14 @@ style_query_func (guint id,
gpointer data)
{
StyleQueryData *query = data;
+ PropertyData *prop;
+
+ prop = g_hash_table_lookup (query->props->priv->properties,
+ _gtk_css_style_property_lookup_by_id (id));
+ if (prop == NULL)
+ return NULL;
- return _gtk_style_properties_peek_property (query->props,
- _gtk_css_style_property_lookup_by_id (id),
- query->state);
+ return property_data_match_state (prop, query->state);
}
/**
diff --git a/gtk/gtkstylepropertiesprivate.h b/gtk/gtkstylepropertiesprivate.h
index 74cde62517..77268d9cce 100644
--- a/gtk/gtkstylepropertiesprivate.h
+++ b/gtk/gtkstylepropertiesprivate.h
@@ -24,9 +24,6 @@
G_BEGIN_DECLS
-GtkCssValue * _gtk_style_properties_peek_property (GtkStyleProperties *props,
- GtkCssStyleProperty *property,
- GtkStateFlags state);
void _gtk_style_properties_set_property_by_property (GtkStyleProperties *props,
GtkCssStyleProperty *property,
GtkStateFlags state,