remove unused import and debug stmt

This commit is contained in:
Karl Seguin
2025-06-17 08:20:11 +08:00
parent 329bffb127
commit 9f54cb35f4

View File

@@ -27,7 +27,6 @@ const urlStitch = @import("../../url.zig").URL.stitch;
const URL = @import("../url/url.zig").URL; const URL = @import("../url/url.zig").URL;
const Node = @import("../dom/node.zig").Node; const Node = @import("../dom/node.zig").Node;
const Element = @import("../dom/element.zig").Element; const Element = @import("../dom/element.zig").Element;
const ElementUnion = @import("../dom/element.zig").Union;
const CSSStyleDeclaration = @import("../cssom/css_style_declaration.zig").CSSStyleDeclaration; const CSSStyleDeclaration = @import("../cssom/css_style_declaration.zig").CSSStyleDeclaration;
@@ -1405,7 +1404,6 @@ pub fn toInterface(comptime T: type, e: *parser.Element) !T {
fn constructHtmlElement(page: *Page, js_this: Env.JsThis) !*parser.Element { fn constructHtmlElement(page: *Page, js_this: Env.JsThis) !*parser.Element {
const constructor_name = try js_this.constructorName(page.call_arena); const constructor_name = try js_this.constructorName(page.call_arena);
std.debug.print("constructor: {s}\n", .{constructor_name});
if (!page.window.custom_elements.lookup.contains(constructor_name)) { if (!page.window.custom_elements.lookup.contains(constructor_name)) {
return error.IllegalContructor; return error.IllegalContructor;
} }