1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:17:45 +00:00

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
parent 1d065aa51b
commit 41e5a0fe02

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));