nativedialog: Remove unused run state
authorTimm Bäder <mail@baedert.org>
Sat, 30 Jan 2021 15:01:54 +0000 (16:01 +0100)
committerTimm Bäder <mail@baedert.org>
Fri, 12 Feb 2021 07:39:40 +0000 (08:39 +0100)
gtk/gtknativedialog.c

index 73ad13ea3a67f2f4d4a1fc7bac05dc139762e9d9..71cceb4f8c41b60f7a180bc4ad505101a4d32e3f 100644 (file)
@@ -68,10 +68,6 @@ struct _GtkNativeDialogPrivate
 
   guint visible : 1;
   guint modal : 1;
-
-  /* Run state */
-  int run_response_id;
-  GMainLoop *run_loop; /* Non-NULL when in run */
 };
 
 enum {
@@ -347,9 +343,6 @@ gtk_native_dialog_hide (GtkNativeDialog *self)
 
   klass->hide (self);
 
-  if (priv->run_loop && g_main_loop_is_running (priv->run_loop))
-    g_main_loop_quit (priv->run_loop);
-
   g_object_notify_by_pspec (G_OBJECT (self), native_props[PROP_VISIBLE]);
 }