Commit 49244dc0ca

Zachary Raineri <zach@raineri.software>
2023-08-06 21:18:50
std: remove some unused imports (#16710)
1 parent 373e48c
lib/std/child_process.zig
@@ -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;
 
lib/std/coff.zig
@@ -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.
lib/std/debug.zig
@@ -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;
lib/std/dwarf.zig
@@ -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");
lib/std/dynamic_library.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,
lib/std/elf.zig
@@ -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;
lib/std/fifo.zig
@@ -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) {
lib/std/hash_map.zig
@@ -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;
lib/std/heap.zig
@@ -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;
lib/std/os.zig
@@ -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;
src/value.zig
@@ -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");