LibWeb: Remove useless move from remove_node_preserving_its_descendants

This commit is contained in:
Jelle Raaijmakers 2025-01-07 11:53:34 +01:00 committed by Andreas Kling
parent e64766d54d
commit acef5a34de
Notes: github-actions[bot] 2025-01-10 22:39:52 +00:00

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Jelle Raaijmakers <jelle@ladybird.org>
* Copyright (c) 2024-2025, Jelle Raaijmakers <jelle@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@ -2234,7 +2234,7 @@ void remove_node_preserving_its_descendants(GC::Ref<DOM::Node> node)
children.ensure_capacity(node->child_count());
for (auto* child = node->first_child(); child; child = child->next_sibling())
children.append(*child);
split_the_parent_of_nodes(move(children));
split_the_parent_of_nodes(children);
return;
}