apprt/gtk: remove useless calls

This commit is contained in:
Mitchell Hashimoto
2023-08-07 21:15:42 -07:00
parent e2e876bfa1
commit 6d32d74996

View File

@ -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