diff --git a/src/dom/html_collection.zig b/src/dom/html_collection.zig
index f3191ceb..4275ea02 100644
--- a/src/dom/html_collection.zig
+++ b/src/dom/html_collection.zig
@@ -199,12 +199,6 @@ pub const WalkerChildren = struct {
// don't want to go further to find children.
if (root == cur.?) return null;
- // TODO deinit last.
- const last = try parser.nodeLastChild(root);
- if (last == cur.?) {
- return null;
- }
-
return try parser.nodeNextSibling(cur.?);
}
};