From c4514e7eb43203c26938b8514f56ddc101150b20 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 9 May 2020 09:22:14 -0400 Subject: [PATCH] window: Remove some dead code We are not attaching windows anymore. --- gtk/gtkwindow.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index bc79bd3d28..544332d00b 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -178,7 +178,6 @@ typedef struct { GtkWidget *child; - GtkWidget *attach_widget; GtkWidget *default_widget; GtkWidget *focus_widget; GtkWindow *transient_parent; @@ -2622,15 +2621,6 @@ gtk_window_list_toplevels (void) return list; } -static void -remove_attach_widget (GtkWindow *window) -{ - GtkWindowPrivate *priv = gtk_window_get_instance_private (window); - - if (priv->attach_widget) - priv->attach_widget = NULL; -} - static void gtk_window_dispose (GObject *object) { @@ -2655,8 +2645,6 @@ gtk_window_dispose (GObject *object) if (priv->transient_parent) gtk_window_set_transient_for (window, NULL); - remove_attach_widget (window); - if (priv->has_user_ref_count) { priv->has_user_ref_count = FALSE; @@ -2672,7 +2660,6 @@ gtk_window_dispose (GObject *object) g_clear_pointer (&priv->layout, gdk_toplevel_layout_unref); gtk_window_set_focus (window, NULL); gtk_window_set_default_widget (window, NULL); - remove_attach_widget (window); g_clear_pointer (&priv->child, gtk_widget_unparent); unset_titlebar (window);