refactor: remove dead drain functions

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

View file

@ -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 {