std, src, doc, test: remove unused variables

This commit is contained in:
Jacob G-W
2021-06-09 21:35:42 -04:00
committed by Andrew Kelley
parent d34a1ccb0e
commit 641ecc260f
112 changed files with 208 additions and 294 deletions

View File

@@ -101,7 +101,7 @@ pub fn deinit(self: *ThreadPool) void {
pub fn spawn(self: *ThreadPool, comptime func: anytype, args: anytype) !void {
if (std.builtin.single_threaded) {
const result = @call(.{}, func, args);
@call(.{}, func, args);
return;
}
@@ -114,7 +114,7 @@ pub fn spawn(self: *ThreadPool, comptime func: anytype, args: anytype) !void {
fn runFn(runnable: *Runnable) void {
const run_node = @fieldParentPtr(RunQueue.Node, "data", runnable);
const closure = @fieldParentPtr(@This(), "run_node", run_node);
const result = @call(.{}, func, closure.arguments);
@call(.{}, func, closure.arguments);
const held = closure.pool.lock.acquire();
defer held.release();