From 9acf3fb20982449547c76bacbe570546aaae6748 Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Fri, 17 Nov 2023 17:37:02 +0100 Subject: [PATCH] dom: remove useless deinit from html_collection --- src/dom/html_collection.zig | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/dom/html_collection.zig b/src/dom/html_collection.zig index 5e486807..969830d9 100644 --- a/src/dom/html_collection.zig +++ b/src/dom/html_collection.zig @@ -20,13 +20,6 @@ const Match = union(enum) { inline else => |case| return case.match(node), } } - - pub fn deinit(self: Match, allocator: std.mem.Allocator) void { - _ = allocator; - switch (self) { - inline else => return, - } - } }; pub const MatchByTagName = struct { @@ -102,10 +95,6 @@ pub const HTMLCollection = struct { cur_idx: ?u32 = undefined, cur_node: ?*parser.Node = undefined, - pub fn deinit(self: *HTMLCollection, allocator: std.mem.Allocator) void { - self.match.deinit(allocator); - } - // get_next iterates over the DOM tree to return the next following node or // null at the end. //