From 48d60834fd61404ea009f7f970775f9c59de1240 Mon Sep 17 00:00:00 2001 From: tgschultz Date: Mon, 16 Nov 2020 17:51:54 -0600 Subject: Move leb128 and remove trivial *mem functions as discussed in #5588 (#6876) * Move leb128 out of debug and remove trivial *mem functions as discussed in #5588 * Turns out one of the *Mem functions was used by MachO. Replaced with trivial use of FixedBufferStream. --- lib/std/debug.zig | 7 ------- 1 file changed, 7 deletions(-) (limited to 'lib/std/debug.zig') diff --git a/lib/std/debug.zig b/lib/std/debug.zig index bb769a03c1..a135dde0ff 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -22,8 +22,6 @@ const maxInt = std.math.maxInt; const File = std.fs.File; const windows = std.os.windows; -pub const leb = @import("debug/leb128.zig"); - pub const runtime_safety = switch (builtin.mode) { .Debug, .ReleaseSafe => true, .ReleaseFast, .ReleaseSmall => false, @@ -1843,8 +1841,3 @@ pub fn dumpStackPointerAddr(prefix: []const u8) void { ); std.debug.warn("{} sp = 0x{x}\n", .{ prefix, sp }); } - -// Reference everything so it gets tested. -test "" { - _ = leb; -} -- cgit v1.2.3