std: remove some unused imports (#16710)
This commit is contained in:
@@ -12,8 +12,6 @@ const mem = std.mem;
|
||||
const math = std.math;
|
||||
const debug = std.debug;
|
||||
const EnvMap = process.EnvMap;
|
||||
const Os = std.builtin.Os;
|
||||
const TailQueue = std.TailQueue;
|
||||
const maxInt = std.math.maxInt;
|
||||
const assert = std.debug.assert;
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
const std = @import("std.zig");
|
||||
const assert = std.debug.assert;
|
||||
const io = std.io;
|
||||
const mem = std.mem;
|
||||
const os = std.os;
|
||||
const fs = std.fs;
|
||||
|
||||
pub const CoffHeaderFlags = packed struct {
|
||||
/// Image only, Windows CE, and Microsoft Windows NT and later.
|
||||
|
||||
@@ -11,9 +11,7 @@ const DW = std.dwarf;
|
||||
const macho = std.macho;
|
||||
const coff = std.coff;
|
||||
const pdb = std.pdb;
|
||||
const ArrayList = std.ArrayList;
|
||||
const root = @import("root");
|
||||
const maxInt = std.math.maxInt;
|
||||
const File = std.fs.File;
|
||||
const windows = std.os.windows;
|
||||
const native_arch = builtin.cpu.arch;
|
||||
|
||||
@@ -3,7 +3,6 @@ const std = @import("std.zig");
|
||||
const debug = std.debug;
|
||||
const fs = std.fs;
|
||||
const io = std.io;
|
||||
const os = std.os;
|
||||
const mem = std.mem;
|
||||
const math = std.math;
|
||||
const leb = @import("leb128.zig");
|
||||
|
||||
@@ -2,12 +2,10 @@ const std = @import("std.zig");
|
||||
const builtin = @import("builtin");
|
||||
const mem = std.mem;
|
||||
const os = std.os;
|
||||
const assert = std.debug.assert;
|
||||
const testing = std.testing;
|
||||
const elf = std.elf;
|
||||
const windows = std.os.windows;
|
||||
const system = std.os.system;
|
||||
const maxInt = std.math.maxInt;
|
||||
|
||||
pub const DynLib = switch (builtin.os.tag) {
|
||||
.linux => if (builtin.link_libc) DlDynlib else ElfDynLib,
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
const std = @import("std.zig");
|
||||
const io = std.io;
|
||||
const os = std.os;
|
||||
const math = std.math;
|
||||
const mem = std.mem;
|
||||
const assert = std.debug.assert;
|
||||
const File = std.fs.File;
|
||||
const native_endian = @import("builtin").target.cpu.arch.endian();
|
||||
|
||||
pub const AT_NULL = 0;
|
||||
|
||||
@@ -5,8 +5,7 @@ const std = @import("std");
|
||||
const math = std.math;
|
||||
const mem = std.mem;
|
||||
const Allocator = mem.Allocator;
|
||||
const debug = std.debug;
|
||||
const assert = debug.assert;
|
||||
const assert = std.debug.assert;
|
||||
const testing = std.testing;
|
||||
|
||||
pub const LinearFifoBufferType = union(enum) {
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
const std = @import("std.zig");
|
||||
const builtin = @import("builtin");
|
||||
const assert = debug.assert;
|
||||
const assert = std.debug.assert;
|
||||
const autoHash = std.hash.autoHash;
|
||||
const debug = std.debug;
|
||||
const math = std.math;
|
||||
const mem = std.mem;
|
||||
const meta = std.meta;
|
||||
|
||||
@@ -6,7 +6,6 @@ const testing = std.testing;
|
||||
const mem = std.mem;
|
||||
const os = std.os;
|
||||
const c = std.c;
|
||||
const maxInt = std.math.maxInt;
|
||||
const Allocator = std.mem.Allocator;
|
||||
|
||||
pub const LoggingAllocator = @import("heap/logging_allocator.zig").LoggingAllocator;
|
||||
|
||||
@@ -25,9 +25,6 @@ const fs = std.fs;
|
||||
const dl = @import("dynamic_library.zig");
|
||||
const MAX_PATH_BYTES = std.fs.MAX_PATH_BYTES;
|
||||
const is_windows = builtin.os.tag == .windows;
|
||||
const Allocator = std.mem.Allocator;
|
||||
const Preopen = std.fs.wasi.Preopen;
|
||||
const PreopenList = std.fs.wasi.PreopenList;
|
||||
|
||||
pub const darwin = std.c;
|
||||
pub const dragonfly = std.c;
|
||||
|
||||
@@ -8,7 +8,6 @@ const BigIntMutable = std.math.big.int.Mutable;
|
||||
const Target = std.Target;
|
||||
const Allocator = std.mem.Allocator;
|
||||
const Module = @import("Module.zig");
|
||||
const Air = @import("Air.zig");
|
||||
const TypedValue = @import("TypedValue.zig");
|
||||
const Sema = @import("Sema.zig");
|
||||
const InternPool = @import("InternPool.zig");
|
||||
|
||||
Reference in New Issue
Block a user