commit 9632ee3eb0c3eef525cdf95e86e04a8df090f26c (tree) parent 2b6589bd3b2d529c56220d762c6a95b7609ea768 Author: Kendall Condon <goon.pri.low@gmail.com> Date: Sat, 6 Dec 2025 11:26:02 -0500 zig fmt: remove dead function Diffstat:
| M | lib/std/zig/Ast/Render.zig | | | 16 | ---------------- |
1 file changed, 0 insertions(+), 16 deletions(-)
diff --git a/lib/std/zig/Ast/Render.zig b/lib/std/zig/Ast/Render.zig @@ -3448,22 +3448,6 @@ fn tokenSliceForRender(tree: Ast, token_index: Ast.TokenIndex) []const u8 { return ret; } -fn writeStringLiteralAsIdentifier(r: *Render, token_index: Ast.TokenIndex) !usize { - const tree = r.tree; - const ais = r.ais; - assert(tree.tokenTag(token_index) == .string_literal); - const lexeme = tokenSliceForRender(tree, token_index); - const unquoted = lexeme[1..][0 .. lexeme.len - 2]; - if (std.zig.isValidId(unquoted)) { - try ais.writeAll(unquoted); - return unquoted.len; - } else { - try ais.writeByte('@'); - try ais.writeAll(lexeme); - return lexeme.len + 1; - } -} - fn hasTrailingComment(tree: Ast, t: Ast.TokenIndex) bool { const start = tree.tokenStart(t) + tree.tokenSlice(t).len; const between = tree.source[start..tree.tokenStart(t + 1)];