From bbadb685aed77037c8d4734abb23350d753186cc Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 27 Jul 2022 13:30:04 +0200 Subject: terminal-window: Vble is assigned a value that is never used --- src/terminal-window.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/terminal-window.c') diff --git a/src/terminal-window.c b/src/terminal-window.c index 0d3d1e9..aa5288f 100644 --- a/src/terminal-window.c +++ b/src/terminal-window.c @@ -3553,14 +3553,11 @@ confirm_close_window_or_tab (TerminalWindow *window, GtkBuilder *builder; TerminalWindowPrivate *priv = window->priv; GtkWidget *dialog; - gboolean do_confirm; gboolean has_processes; int n_tabs; char *confirm_msg; - do_confirm = g_settings_get_boolean (settings_global, "confirm-window-close"); - - if (!do_confirm) + if (!g_settings_get_boolean (settings_global, "confirm-window-close")) return FALSE; if (screen) @@ -3572,8 +3569,6 @@ confirm_close_window_or_tab (TerminalWindow *window, { GList *tabs, *t; - do_confirm = FALSE; - tabs = terminal_window_list_screen_containers (window); n_tabs = g_list_length (tabs); -- cgit v1.2.1