aboutsummaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
Diffstat (limited to 'std')
-rw-r--r--std/mem.zig16
1 files changed, 0 insertions, 16 deletions
diff --git a/std/mem.zig b/std/mem.zig
index 2adb647ef6..07521bfcb8 100644
--- a/std/mem.zig
+++ b/std/mem.zig
@@ -116,22 +116,6 @@ pub const Allocator = struct {
const non_const_ptr = @intToPtr(&u8, @ptrToInt(bytes.ptr));
self.freeFn(self, non_const_ptr[0..bytes.len]);
}
-
- pub const AsyncAllocator = struct {
- allocator: &Allocator,
-
- fn alloc(self: &const AsyncAllocator, byte_count: usize, alignment: u29) Error![]u8 {
- return self.allocator.allocFn(self.allocator, byte_count, alignment);
- }
-
- fn free(self: &const AsyncAllocator, old_mem: []u8) void {
- return self.allocator.freeFn(self.allocator, old_mem);
- }
- };
-
- fn toAsync(self: &Allocator) AsyncAllocator {
- return AsyncAllocator { .allocator = self };
- }
};
/// Copy all of source into dest at position 0.