diff options
author | 2023-09-12 21:36:27 -0700 | |
---|---|---|
committer | 2023-09-12 21:36:27 -0700 | |
commit | d4a2c29131ec154f5e4db897d4deedab2002cbc4 (patch) | |
tree | a26646e5b99e0185a721f7aff689a86ca9f13f0e /src/bun.js | |
parent | a5b9c9c1c3da9fb019ad810e44c88dae128f9866 (diff) | |
download | bun-d4a2c29131ec154f5e4db897d4deedab2002cbc4.tar.gz bun-d4a2c29131ec154f5e4db897d4deedab2002cbc4.tar.zst bun-d4a2c29131ec154f5e4db897d4deedab2002cbc4.zip |
Diffstat (limited to 'src/bun.js')
-rw-r--r-- | src/bun.js/event_loop.zig | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/bun.js/event_loop.zig b/src/bun.js/event_loop.zig index 81496ab0a..f22d8793a 100644 --- a/src/bun.js/event_loop.zig +++ b/src/bun.js/event_loop.zig @@ -1005,12 +1005,6 @@ pub const MiniEventLoop = struct { } } - pub fn drainTasks(this: *MiniEventLoop, context: *anyopaque) void { - while (this.tasks.readItem()) |task| { - task.run(context); - } - } - pub fn enqueueTask( this: *MiniEventLoop, comptime Context: type, @@ -1099,15 +1093,4 @@ pub const AnyEventLoop = union(enum) { }, } } - - pub fn drainTasks(this: *AnyEventLoop, context: *anyopaque) void { - switch (this.*) { - .jsc => { - unreachable; - }, - .mini => { - this.mini.drainTasks(context); - }, - } - } }; |