From 6d32d7499606633c882edfdd3cc477b09060e2b7 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 7 Aug 2023 21:15:42 -0700 Subject: [PATCH] apprt/gtk: remove useless calls --- src/apprt/gtk.zig | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/apprt/gtk.zig b/src/apprt/gtk.zig index abb06842d..705880962 100644 --- a/src/apprt/gtk.zig +++ b/src/apprt/gtk.zig @@ -133,8 +133,6 @@ pub const App = struct { // Terminate the application. The application will not be restarted after // this so all global state can be cleaned up. pub fn terminate(self: *App) void { - c.g_signal_emit(self.app, c.g_signal_lookup("shutdown", c.g_application_get_type()), 0); - c.g_settings_sync(); while (c.g_main_context_iteration(self.ctx, 0) != 0) {} c.g_main_context_release(self.ctx); @@ -191,9 +189,6 @@ pub const App = struct { _ = parent_; const alloc = self.core_app.alloc; - // If we're trying to quit, then do not open any new windows. - if (!self.running) return; - // Allocate a fixed pointer for our window. We try to minimize // allocations but windows and other GUI requirements are so minimal // compared to the steady-state terminal operation so we use heap