mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 22:53:28 +00:00
wpt: remode useless func
This commit is contained in:
@@ -14,14 +14,6 @@ const HTMLElem = @import("html/elements.zig");
|
||||
|
||||
const wpt_dir = "tests/wpt";
|
||||
|
||||
fn readFile(allocator: std.mem.Allocator, filename: []const u8) ![]const u8 {
|
||||
var file = try std.fs.cwd().openFile(filename, .{});
|
||||
defer file.close();
|
||||
|
||||
const file_size = try file.getEndPos();
|
||||
return file.readToEndAlloc(allocator, file_size);
|
||||
}
|
||||
|
||||
// generate APIs
|
||||
const apis = jsruntime.compile(DOM.Interfaces);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user