zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 49244dc0ca68d4b1282b7b26b52e750a4892fce2 (tree)
parent 373e48c9831c44f15c3209a92779a87348f690fd
Author: Zachary Raineri <zach@raineri.software>
Date:   Sun,  6 Aug 2023 14:18:50 -0500

std: remove some unused imports (#16710)


Diffstat:
Mlib/std/child_process.zig | 2--
Mlib/std/coff.zig | 3---
Mlib/std/debug.zig | 2--
Mlib/std/dwarf.zig | 1-
Mlib/std/dynamic_library.zig | 2--
Mlib/std/elf.zig | 3---
Mlib/std/fifo.zig | 3+--
Mlib/std/hash_map.zig | 3+--
Mlib/std/heap.zig | 1-
Mlib/std/os.zig | 3---
Msrc/value.zig | 1-
11 files changed, 2 insertions(+), 22 deletions(-)

diff --git a/lib/std/child_process.zig b/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; diff --git a/lib/std/coff.zig b/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. diff --git a/lib/std/debug.zig b/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; diff --git a/lib/std/dwarf.zig b/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"); diff --git a/lib/std/dynamic_library.zig b/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, diff --git a/lib/std/elf.zig b/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; diff --git a/lib/std/fifo.zig b/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) { diff --git a/lib/std/hash_map.zig b/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; diff --git a/lib/std/heap.zig b/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; diff --git a/lib/std/os.zig b/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; diff --git a/src/value.zig b/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");