diff --git a/src/browser/webapi/collections/HTMLCollection.zig b/src/browser/webapi/collections/HTMLCollection.zig index 462f1b37..e1b0f547 100644 --- a/src/browser/webapi/collections/HTMLCollection.zig +++ b/src/browser/webapi/collections/HTMLCollection.zig @@ -41,7 +41,6 @@ const Mode = enum { const HTMLCollection = @This(); -_type: Type = .{ .generic = {} }, _data: union(Mode) { tag: NodeLive(.tag), tag_name: NodeLive(.tag_name), @@ -56,11 +55,6 @@ _data: union(Mode) { form: NodeLive(.form), }, -const Type = union(enum) { - generic: void, - form: *Form, -}; - pub fn length(self: *HTMLCollection, page: *const Page) u32 { return switch (self._data) { inline else => |*impl| impl.length(page), diff --git a/src/browser/webapi/collections/node_live.zig b/src/browser/webapi/collections/node_live.zig index f02b66fb..5975f428 100644 --- a/src/browser/webapi/collections/node_live.zig +++ b/src/browser/webapi/collections/node_live.zig @@ -328,7 +328,7 @@ pub fn NodeLive(comptime mode: Mode) type { .selected_options => HTMLCollection{ ._data = .{ .selected_options = self } }, .links => HTMLCollection{ ._data = .{ .links = self } }, .anchors => HTMLCollection{ ._data = .{ .anchors = self } }, - .form => HTMLCollection{ ._type = .{ .form = self._filter }, ._data = .{ .form = self } }, + .form => HTMLCollection{ ._data = .{ .form = self } }, }; return page._factory.create(collection); }