From ad4b69915ce6c31f41df54f25fcf1a30df9fb127 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Fri, 20 Feb 2026 19:21:06 +0100 Subject: [PATCH] refactor: remove dead drain functions --- src/nightwatch.zig | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/nightwatch.zig b/src/nightwatch.zig index 6ec102c..2eaeee1 100644 --- a/src/nightwatch.zig +++ b/src/nightwatch.zig @@ -410,8 +410,6 @@ const FSEventsBackend = struct { fn remove_watch(self: *@This(), allocator: std.mem.Allocator, path: []const u8) void { if (self.watches.fetchSwapRemove(path)) |entry| allocator.free(entry.key); } - - fn drain(_: *@This(), _: std.mem.Allocator, _: tp.pid_ref) tp.result {} }; const KQueueBackend = struct { @@ -528,10 +526,6 @@ const KQueueBackend = struct { allocator.free(entry.key); } } - - fn drain(_: *@This(), _: std.mem.Allocator, _: tp.pid_ref) tp.result { - // Events are sent directly from thread_fn; nothing to do here. - } }; const WindowsBackend = struct {