netsurf: remove documentHTMLParseFromFile

This commit is contained in:
Pierre Tachoire
2024-01-09 11:35:18 +01:00
parent cc3a7ec4a1
commit 5496e68a02
5 changed files with 4 additions and 10 deletions

View File

@@ -20,7 +20,7 @@ pub fn run(arena: *std.heap.ArenaAllocator, comptime apis: []jsruntime.API, comp
const file = try std.fs.cwd().openFile(f, .{});
defer file.close();
const html_doc = try parser.documentHTMLParseFromFile(file);
const html_doc = try parser.documentHTMLParse(file.reader());
const doc = parser.documentHTMLToDocument(html_doc);
const dirname = fspath.dirname(f[dir.len..]) orelse unreachable;