From c1fb97aef6d0f7343e9226b2f19fbe9d315afa94 Mon Sep 17 00:00:00 2001 From: Benjamin Feng Date: Thu, 30 Jan 2020 00:20:11 -0600 Subject: [PATCH] Remove unnecessary allocator from mutex --- lib/std/mutex.zig | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/std/mutex.zig b/lib/std/mutex.zig index 7fbe4fde18..30ac835f9f 100644 --- a/lib/std/mutex.zig +++ b/lib/std/mutex.zig @@ -306,12 +306,6 @@ const TestContext = struct { }; test "std.Mutex" { - var plenty_of_memory = try std.heap.page_allocator.alloc(u8, 300 * 1024); - defer std.heap.page_allocator.free(plenty_of_memory); - - var fixed_buffer_allocator = std.heap.ThreadSafeFixedBufferAllocator.init(plenty_of_memory); - var a = &fixed_buffer_allocator.allocator; - var mutex = Mutex.init(); defer mutex.deinit();