diff options
Diffstat (limited to 'dev/gui/gui.zig')
| -rw-r--r-- | dev/gui/gui.zig | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/dev/gui/gui.zig b/dev/gui/gui.zig index fa480665..72ad1eed 100644 --- a/dev/gui/gui.zig +++ b/dev/gui/gui.zig @@ -1071,10 +1071,6 @@ const Own = struct { if (o.shell.upgrade_asked) |pane| o.shell.upgradeNow(pane); } - pub fn note(o: *Own, n: daemon.Note) void { - deliverNote(&o.shell, n); - } - pub fn restoring(o: *Own, nc: *pardes.Pardes) void { // One view, the window's (host_io.restoreCore). o.shell.gview = 0; @@ -3073,21 +3069,6 @@ fn guiNow(ctx: ?*anyopaque) u64 { return s.test_clock orelse s.paced_ns orelse c.SDL_GetTicksNS(); } -/// The daemon's thread: what it says, onto the queue (drainQueue). -fn deliverNote(ctx: *anyopaque, note: daemon.Note) void { - const s: *Shell = @ptrCast(@alignCast(ctx)); - const q = s.queue; - switch (note) { - .relinked => q.wake(), - .adopted => |a| { - for (a.pids[0..a.n], a.fds[0..a.n]) |pid, fd| q.push(.{ .adopted = .{ .pid = pid, .fd = fd } }); - q.push(.{ .adopted = .{ .pid = 0, .fd = -1 } }); - }, - // Joined at the next step boundary (Peers, any thread). - .replica => |j| s.peers.handed(j.fd, j.view), - } -} - fn writeDump(ctx: ?*anyopaque, bytes: []const u8) void { host_io.writeDump(shellOf(ctx).core, bytes); } |
