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;
1212const math = std.math;
1313const debug = std.debug;
1414const EnvMap = process.EnvMap;
15const Os = std.builtin.Os;
16const TailQueue = std.TailQueue;
1715const maxInt = std.math.maxInt;
1816const assert = std.debug.assert;
1917
lib/std/coff.zig-3
......@@ -1,9 +1,6 @@
11const std = @import("std.zig");
22const assert = std.debug.assert;
3const io = std.io;
43const mem = std.mem;
5const os = std.os;
6const fs = std.fs;
74
85pub const CoffHeaderFlags = packed struct {
96 /// Image only, Windows CE, and Microsoft Windows NT and later.
lib/std/debug.zig-2
......@@ -11,9 +11,7 @@ const DW = std.dwarf;
1111const macho = std.macho;
1212const coff = std.coff;
1313const pdb = std.pdb;
14const ArrayList = std.ArrayList;
1514const root = @import("root");
16const maxInt = std.math.maxInt;
1715const File = std.fs.File;
1816const windows = std.os.windows;
1917const native_arch = builtin.cpu.arch;
lib/std/dwarf.zig-1
......@@ -3,7 +3,6 @@ const std = @import("std.zig");
33const debug = std.debug;
44const fs = std.fs;
55const io = std.io;
6const os = std.os;
76const mem = std.mem;
87const math = std.math;
98const leb = @import("leb128.zig");
lib/std/dynamic_library.zig-2
......@@ -2,12 +2,10 @@ const std = @import("std.zig");
22const builtin = @import("builtin");
33const mem = std.mem;
44const os = std.os;
5const assert = std.debug.assert;
65const testing = std.testing;
76const elf = std.elf;
87const windows = std.os.windows;
98const system = std.os.system;
10const maxInt = std.math.maxInt;
119
1210pub const DynLib = switch (builtin.os.tag) {
1311 .linux => if (builtin.link_libc) DlDynlib else ElfDynLib,
lib/std/elf.zig-3
......@@ -1,10 +1,7 @@
11const std = @import("std.zig");
2const io = std.io;
3const os = std.os;
42const math = std.math;
53const mem = std.mem;
64const assert = std.debug.assert;
7const File = std.fs.File;
85const native_endian = @import("builtin").target.cpu.arch.endian();
96
107pub const AT_NULL = 0;
lib/std/fifo.zig+1-2
......@@ -5,8 +5,7 @@ const std = @import("std");
55const math = std.math;
66const mem = std.mem;
77const Allocator = mem.Allocator;
8const debug = std.debug;
9const assert = debug.assert;
8const assert = std.debug.assert;
109const testing = std.testing;
1110
1211pub const LinearFifoBufferType = union(enum) {
lib/std/hash_map.zig+1-2
......@@ -1,8 +1,7 @@
11const std = @import("std.zig");
22const builtin = @import("builtin");
3const assert = debug.assert;
3const assert = std.debug.assert;
44const autoHash = std.hash.autoHash;
5const debug = std.debug;
65const math = std.math;
76const mem = std.mem;
87const meta = std.meta;
lib/std/heap.zig-1
......@@ -6,7 +6,6 @@ const testing = std.testing;
66const mem = std.mem;
77const os = std.os;
88const c = std.c;
9const maxInt = std.math.maxInt;
109const Allocator = std.mem.Allocator;
1110
1211pub const LoggingAllocator = @import("heap/logging_allocator.zig").LoggingAllocator;
lib/std/os.zig-3
......@@ -25,9 +25,6 @@ const fs = std.fs;
2525const dl = @import("dynamic_library.zig");
2626const MAX_PATH_BYTES = std.fs.MAX_PATH_BYTES;
2727const is_windows = builtin.os.tag == .windows;
28const Allocator = std.mem.Allocator;
29const Preopen = std.fs.wasi.Preopen;
30const PreopenList = std.fs.wasi.PreopenList;
3128
3229pub const darwin = std.c;
3330pub const dragonfly = std.c;
src/value.zig-1
......@@ -8,7 +8,6 @@ const BigIntMutable = std.math.big.int.Mutable;
88const Target = std.Target;
99const Allocator = std.mem.Allocator;
1010const Module = @import("Module.zig");
11const Air = @import("Air.zig");
1211const TypedValue = @import("TypedValue.zig");
1312const Sema = @import("Sema.zig");
1413const InternPool = @import("InternPool.zig");