From 524f24aaf5b21f9e0f8572093664b27a8930fc8f Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 15 Jul 2024 15:23:39 -0700 Subject: [PATCH] termio: remove unused data --- src/termio/Termio.zig | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/termio/Termio.zig b/src/termio/Termio.zig index fd7c36956..9459f9152 100644 --- a/src/termio/Termio.zig +++ b/src/termio/Termio.zig @@ -239,15 +239,8 @@ pub fn deinit(self: *Termio) void { } pub fn threadEnter(self: *Termio, thread: *termio.Thread, data: *ThreadData) !void { - const alloc = self.alloc; - - // Wakeup watcher for the writer thread. - var wakeup = try xev.Async.init(); - errdefer wakeup.deinit(); - - // Setup our thread data data.* = .{ - .alloc = alloc, + .alloc = self.alloc, .loop = &thread.loop, .renderer_state = self.renderer_state, .surface_mailbox = self.surface_mailbox, @@ -256,7 +249,7 @@ pub fn threadEnter(self: *Termio, thread: *termio.Thread, data: *ThreadData) !vo }; // Setup our backend - try self.backend.threadEnter(alloc, self, data); + try self.backend.threadEnter(self.alloc, self, data); } pub fn threadExit(self: *Termio, data: *ThreadData) void {