diff --git a/src/Surface.zig b/src/Surface.zig index d83926b43..d29aead0c 100644 --- a/src/Surface.zig +++ b/src/Surface.zig @@ -482,9 +482,7 @@ pub fn deinit(self: *Surface) void { /// Close this surface. This will trigger the runtime to start the /// close process, which should ultimately deinitialize this surface. pub fn close(self: *Surface) void { - if (@hasDecl(apprt.Surface, "close")) { - self.rt_surface.close(); - } else log.warn("runtime doesn't implement close", .{}); + self.rt_surface.close(); } /// Called from the app thread to handle mailbox messages to our specific diff --git a/src/termio/Exec.zig b/src/termio/Exec.zig index 37150a5cf..c1a903b7f 100644 --- a/src/termio/Exec.zig +++ b/src/termio/Exec.zig @@ -364,22 +364,6 @@ fn processExit( return .disarm; } -fn ttyClose( - _: ?*EventData, - _: *xev.Loop, - _: *xev.Completion, - _: xev.Stream, - r: xev.Stream.CloseError!void, -) xev.CallbackAction { - _ = r catch |err| { - log.warn("error closing tty err={}", .{err}); - return .disarm; - }; - - log.debug("tty parent closed", .{}); - return .disarm; -} - fn ttyWrite( ev_: ?*EventData, _: *xev.Loop,