LibWeb: Remove unneeded iteration filter on LiveNodeList

Since all items of the subtree are Nodes, the "of type" condition was
always true. This triggers a warning on Lagom builds.
This commit is contained in:
DexesTTP 2022-04-03 00:48:37 +02:00 committed by Linus Groh
parent 56d018f6b5
commit 1af7bfb3a6
Notes: sideshowbarker 2024-07-17 11:14:46 +09:00

View file

@ -18,7 +18,7 @@ LiveNodeList::LiveNodeList(Node& root, Function<bool(Node const&)> filter)
NonnullRefPtrVector<Node> LiveNodeList::collection() const
{
NonnullRefPtrVector<Node> nodes;
m_root->for_each_in_inclusive_subtree_of_type<Node>([&](auto& node) {
m_root->for_each_in_inclusive_subtree([&](auto& node) {
if (m_filter(node))
nodes.append(node);