mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 00:36:07 +03:00
remove unused function, make apprt surface close mandatory
This commit is contained in:
@ -482,9 +482,7 @@ pub fn deinit(self: *Surface) void {
|
|||||||
/// Close this surface. This will trigger the runtime to start the
|
/// Close this surface. This will trigger the runtime to start the
|
||||||
/// close process, which should ultimately deinitialize this surface.
|
/// close process, which should ultimately deinitialize this surface.
|
||||||
pub fn close(self: *Surface) void {
|
pub fn close(self: *Surface) void {
|
||||||
if (@hasDecl(apprt.Surface, "close")) {
|
|
||||||
self.rt_surface.close();
|
self.rt_surface.close();
|
||||||
} else log.warn("runtime doesn't implement close", .{});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Called from the app thread to handle mailbox messages to our specific
|
/// Called from the app thread to handle mailbox messages to our specific
|
||||||
|
@ -364,22 +364,6 @@ fn processExit(
|
|||||||
return .disarm;
|
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(
|
fn ttyWrite(
|
||||||
ev_: ?*EventData,
|
ev_: ?*EventData,
|
||||||
_: *xev.Loop,
|
_: *xev.Loop,
|
||||||
|
Reference in New Issue
Block a user