refactor: remove dead drain functions

This commit is contained in:
CJ van den Berg 2026-02-20 19:21:06 +01:00
parent 62ec677b9c
commit 3d90fb724b
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -409,8 +409,6 @@ const FSEventsBackend = struct {
fn remove_watch(self: *@This(), allocator: std.mem.Allocator, path: []const u8) void { fn remove_watch(self: *@This(), allocator: std.mem.Allocator, path: []const u8) void {
if (self.watches.fetchSwapRemove(path)) |entry| allocator.free(entry.key); if (self.watches.fetchSwapRemove(path)) |entry| allocator.free(entry.key);
} }
fn drain(_: *@This(), _: std.mem.Allocator, _: tp.pid_ref) tp.result {}
}; };
const KQueueBackend = struct { const KQueueBackend = struct {
@ -527,10 +525,6 @@ const KQueueBackend = struct {
allocator.free(entry.key); 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 { const WindowsBackend = struct {