authorgravatar for zach@raineri.softwareZachary Raineri <zach@raineri.software> 2023-08-06 14:18:50-05:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2023-08-06 15:18:50-04:00
log49244dc0ca68d4b1282b7b26b52e750a4892fce2
treec80cb3b99529c3a9f98074434be1985d41a98019
parent373e48c9831c44f15c3209a92779a87348f690fd
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

std: remove some unused imports (#16710)


11 files changed, 2 insertions(+), 22 deletions(-)

lib/std/child_process.zig-2
...@@ -12,8 +12,6 @@ const mem = std.mem;...@@ -12,8 +12,6 @@ const mem = std.mem;
12const math = std.math;12const math = std.math;
13const debug = std.debug;13const debug = std.debug;
14const EnvMap = process.EnvMap;14const EnvMap = process.EnvMap;
15const Os = std.builtin.Os;
16const TailQueue = std.TailQueue;
17const maxInt = std.math.maxInt;15const maxInt = std.math.maxInt;
18const assert = std.debug.assert;16const assert = std.debug.assert;
1917
lib/std/coff.zig-3
...@@ -1,9 +1,6 @@...@@ -1,9 +1,6 @@
1const std = @import("std.zig");1const std = @import("std.zig");
2const assert = std.debug.assert;2const assert = std.debug.assert;
3const io = std.io;
4const mem = std.mem;3const mem = std.mem;
5const os = std.os;
6const fs = std.fs;
74
8pub const CoffHeaderFlags = packed struct {5pub const CoffHeaderFlags = packed struct {
9 /// Image only, Windows CE, and Microsoft Windows NT and later.6 /// Image only, Windows CE, and Microsoft Windows NT and later.
lib/std/debug.zig-2
...@@ -11,9 +11,7 @@ const DW = std.dwarf;...@@ -11,9 +11,7 @@ const DW = std.dwarf;
11const macho = std.macho;11const macho = std.macho;
12const coff = std.coff;12const coff = std.coff;
13const pdb = std.pdb;13const pdb = std.pdb;
14const ArrayList = std.ArrayList;
15const root = @import("root");14const root = @import("root");
16const maxInt = std.math.maxInt;
17const File = std.fs.File;15const File = std.fs.File;
18const windows = std.os.windows;16const windows = std.os.windows;
19const native_arch = builtin.cpu.arch;17const native_arch = builtin.cpu.arch;
lib/std/dwarf.zig-1
...@@ -3,7 +3,6 @@ const std = @import("std.zig");...@@ -3,7 +3,6 @@ const std = @import("std.zig");
3const debug = std.debug;3const debug = std.debug;
4const fs = std.fs;4const fs = std.fs;
5const io = std.io;5const io = std.io;
6const os = std.os;
7const mem = std.mem;6const mem = std.mem;
8const math = std.math;7const math = std.math;
9const leb = @import("leb128.zig");8const leb = @import("leb128.zig");
lib/std/dynamic_library.zig-2
...@@ -2,12 +2,10 @@ const std = @import("std.zig");...@@ -2,12 +2,10 @@ const std = @import("std.zig");
2const builtin = @import("builtin");2const builtin = @import("builtin");
3const mem = std.mem;3const mem = std.mem;
4const os = std.os;4const os = std.os;
5const assert = std.debug.assert;
6const testing = std.testing;5const testing = std.testing;
7const elf = std.elf;6const elf = std.elf;
8const windows = std.os.windows;7const windows = std.os.windows;
9const system = std.os.system;8const system = std.os.system;
10const maxInt = std.math.maxInt;
119
12pub const DynLib = switch (builtin.os.tag) {10pub const DynLib = switch (builtin.os.tag) {
13 .linux => if (builtin.link_libc) DlDynlib else ElfDynLib,11 .linux => if (builtin.link_libc) DlDynlib else ElfDynLib,
lib/std/elf.zig-3
...@@ -1,10 +1,7 @@...@@ -1,10 +1,7 @@
1const std = @import("std.zig");1const std = @import("std.zig");
2const io = std.io;
3const os = std.os;
4const math = std.math;2const math = std.math;
5const mem = std.mem;3const mem = std.mem;
6const assert = std.debug.assert;4const assert = std.debug.assert;
7const File = std.fs.File;
8const native_endian = @import("builtin").target.cpu.arch.endian();5const native_endian = @import("builtin").target.cpu.arch.endian();
96
10pub const AT_NULL = 0;7pub const AT_NULL = 0;
lib/std/fifo.zig+1-2
...@@ -5,8 +5,7 @@ const std = @import("std");...@@ -5,8 +5,7 @@ const std = @import("std");
5const math = std.math;5const math = std.math;
6const mem = std.mem;6const mem = std.mem;
7const Allocator = mem.Allocator;7const Allocator = mem.Allocator;
8const debug = std.debug;8const assert = std.debug.assert;
9const assert = debug.assert;
10const testing = std.testing;9const testing = std.testing;
1110
12pub const LinearFifoBufferType = union(enum) {11pub const LinearFifoBufferType = union(enum) {
lib/std/hash_map.zig+1-2
...@@ -1,8 +1,7 @@...@@ -1,8 +1,7 @@
1const std = @import("std.zig");1const std = @import("std.zig");
2const builtin = @import("builtin");2const builtin = @import("builtin");
3const assert = debug.assert;3const assert = std.debug.assert;
4const autoHash = std.hash.autoHash;4const autoHash = std.hash.autoHash;
5const debug = std.debug;
6const math = std.math;5const math = std.math;
7const mem = std.mem;6const mem = std.mem;
8const meta = std.meta;7const meta = std.meta;
lib/std/heap.zig-1
...@@ -6,7 +6,6 @@ const testing = std.testing;...@@ -6,7 +6,6 @@ const testing = std.testing;
6const mem = std.mem;6const mem = std.mem;
7const os = std.os;7const os = std.os;
8const c = std.c;8const c = std.c;
9const maxInt = std.math.maxInt;
10const Allocator = std.mem.Allocator;9const Allocator = std.mem.Allocator;
1110
12pub const LoggingAllocator = @import("heap/logging_allocator.zig").LoggingAllocator;11pub const LoggingAllocator = @import("heap/logging_allocator.zig").LoggingAllocator;
lib/std/os.zig-3
...@@ -25,9 +25,6 @@ const fs = std.fs;...@@ -25,9 +25,6 @@ const fs = std.fs;
25const dl = @import("dynamic_library.zig");25const dl = @import("dynamic_library.zig");
26const MAX_PATH_BYTES = std.fs.MAX_PATH_BYTES;26const MAX_PATH_BYTES = std.fs.MAX_PATH_BYTES;
27const is_windows = builtin.os.tag == .windows;27const is_windows = builtin.os.tag == .windows;
28const Allocator = std.mem.Allocator;
29const Preopen = std.fs.wasi.Preopen;
30const PreopenList = std.fs.wasi.PreopenList;
3128
32pub const darwin = std.c;29pub const darwin = std.c;
33pub const dragonfly = std.c;30pub const dragonfly = std.c;
src/value.zig-1
...@@ -8,7 +8,6 @@ const BigIntMutable = std.math.big.int.Mutable;...@@ -8,7 +8,6 @@ const BigIntMutable = std.math.big.int.Mutable;
8const Target = std.Target;8const Target = std.Target;
9const Allocator = std.mem.Allocator;9const Allocator = std.mem.Allocator;
10const Module = @import("Module.zig");10const Module = @import("Module.zig");
11const Air = @import("Air.zig");
12const TypedValue = @import("TypedValue.zig");11const TypedValue = @import("TypedValue.zig");
13const Sema = @import("Sema.zig");12const Sema = @import("Sema.zig");
14const InternPool = @import("InternPool.zig");13const InternPool = @import("InternPool.zig");