CI: Remove unused top-level decls in formatter in zig (#19879)

Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
This commit is contained in:
Jarred Sumner
2025-05-23 22:49:48 -07:00
committed by GitHub
parent 5d84f8a102
commit 3ea6133c46
391 changed files with 158 additions and 2667 deletions

View File

@@ -2,13 +2,11 @@ const std = @import("std");
const expect = std.testing.expect;
const Environment = @import("./env.zig");
const string = bun.string;
const stringZ = bun.stringZ;
const CodePoint = bun.CodePoint;
const bun = @import("bun");
const log = bun.Output.scoped(.STR, true);
const js_lexer = @import("./js_lexer.zig");
const grapheme = @import("./grapheme.zig");
const JSC = bun.JSC;
const OOM = bun.OOM;
/// memmem is provided by libc on posix, but implemented in zig for windows.
@@ -4689,9 +4687,6 @@ pub fn cmpStringsDesc(_: void, a: string, b: string) bool {
return order(a, b) == .gt;
}
const sort_asc = std.sort.asc(u8);
const sort_desc = std.sort.desc(u8);
/// Every time you read a non^2 sized integer, Zig masks off the extra bits.
/// This is a meaningful performance difference, including in release builds.
const u3_fast = u8;