LibWeb: Remove duplicated code in TreeNode::remove_child()

We were assigning to m_first_child twice.
This commit is contained in:
Andreas Kling 2021-04-06 14:18:32 +02:00
commit 41e5a0fe02
Notes: sideshowbarker 2024-07-18 20:43:53 +09:00

View file

@ -397,9 +397,6 @@ inline void TreeNode<T>::insert_before(NonnullRefPtr<T> node, RefPtr<T> child, b
child->m_previous_sibling = node;
if (m_first_child == child)
m_first_child = node;
node->m_parent = static_cast<T*>(this);
if (notify)
node->inserted_into(static_cast<T&>(*this));