authorgravatar for yfliu2008@qq.comYanfeng Liu <yfliu2008@qq.com> 2026-03-14 17:04:33+08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-03-15 21:38:45+01:00
log584b8f281e18f509600026e18f83dfd9621fe591
treecbd81d9f960cfe3fef1e35933995106e7da0c6a5
parent5d215838a79a24c21842fbc76fd77aca4c28b162

zig fmt: remove dead functions

This drops a few dead functions in AutoIndentingStream. Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>

1 files changed, 0 insertions(+), 20 deletions(-)

lib/std/zig/Ast/Render.zig-20
......@@ -3675,26 +3675,6 @@ const AutoIndentingStream = struct {
36753675 try ais.insertNewline();
36763676 }
36773677
3678 /// Push an indent that is automatically popped after being applied
3679 pub fn pushIndentOneShot(ais: *AutoIndentingStream) void {
3680 ais.indent_one_shot_count += 1;
3681 ais.pushIndent();
3682 }
3683
3684 /// Turns all one-shot indents into regular indents
3685 /// Returns number of indents that must now be manually popped
3686 pub fn lockOneShotIndent(ais: *AutoIndentingStream) usize {
3687 const locked_count = ais.indent_one_shot_count;
3688 ais.indent_one_shot_count = 0;
3689 return locked_count;
3690 }
3691
3692 /// Push an indent that should not take effect until the next line
3693 pub fn pushIndentNextLine(ais: *AutoIndentingStream) void {
3694 ais.indent_next_line += 1;
3695 ais.pushIndent();
3696 }
3697
36983678 /// Checks to see if the most recent indentation exceeds the currently pushed indents
36993679 pub fn isLineOverIndented(ais: *AutoIndentingStream) bool {
37003680 if (ais.current_line_empty) return false;