AXNode: remove unused mock JSON lifecycle methods

Simplifies TextCaptureWriter by removing unused methods, ensuring future changes to writeName will fail at build time if new methods are required.
This commit is contained in:
Adrià Arrufat
2026-03-11 16:25:34 +09:00
parent af803da5c8
commit feccc9f5ce

View File

@@ -765,11 +765,6 @@ pub fn getName(self: AXNode, page: *Page, allocator: std.mem.Allocator) !?[]cons
// Mock JSON Stringifier lifecycle methods // Mock JSON Stringifier lifecycle methods
pub fn beginWriteRaw(_: @This()) !void {} pub fn beginWriteRaw(_: @This()) !void {}
pub fn endWriteRaw(_: @This()) void {} pub fn endWriteRaw(_: @This()) void {}
pub fn objectField(_: @This(), _: []const u8) !void {}
pub fn beginObject(_: @This()) !void {}
pub fn endObject(_: @This()) !void {}
pub fn beginArray(_: @This()) !void {}
pub fn endArray(_: @This()) !void {}
}; };
const w = TextCaptureWriter{ .aw = &aw, .writer = &aw.writer }; const w = TextCaptureWriter{ .aw = &aw, .writer = &aw.writer };