refactor: remove dead drain functions
This commit is contained in:
parent
db0cced754
commit
ad4b69915c
1 changed files with 0 additions and 6 deletions
|
|
@ -410,8 +410,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 {
|
||||||
|
|
@ -528,10 +526,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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue