widget: Remove unused member

This commit is contained in:
Benjamin Otte 2018-04-11 00:08:33 +02:00
parent 3ee2aa1b22
commit 2862ee7682
2 changed files with 0 additions and 9 deletions

View File

@ -11610,7 +11610,6 @@ void
gtk_widget_register_surface (GtkWidget *widget,
GdkSurface *surface)
{
GtkWidgetPrivate *priv;
gpointer user_data;
g_return_if_fail (GTK_IS_WIDGET (widget));
@ -11619,10 +11618,7 @@ gtk_widget_register_surface (GtkWidget *widget,
gdk_surface_get_user_data (surface, &user_data);
g_assert (user_data == NULL);
priv = widget->priv;
gdk_surface_set_user_data (surface, widget);
priv->registered_surfaces = g_list_prepend (priv->registered_surfaces, surface);
}
/**
@ -11638,18 +11634,14 @@ void
gtk_widget_unregister_surface (GtkWidget *widget,
GdkSurface *surface)
{
GtkWidgetPrivate *priv;
gpointer user_data;
g_return_if_fail (GTK_IS_WIDGET (widget));
g_return_if_fail (GDK_IS_SURFACE (surface));
priv = widget->priv;
gdk_surface_get_user_data (surface, &user_data);
g_assert (user_data == widget);
gdk_surface_set_user_data (surface, NULL);
priv->registered_surfaces = g_list_remove (priv->registered_surfaces, surface);
}
/**

View File

@ -157,7 +157,6 @@ struct _GtkWidgetPrivate
* no_surface field being set).
*/
GdkSurface *surface;
GList *registered_surfaces;
GList *event_controllers;