mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:57:44 +00:00
LibWeb: Remove duplicated code in TreeNode::remove_child()
We were assigning to m_first_child twice.
This commit is contained in:
parent
1d065aa51b
commit
41e5a0fe02
1 changed files with 0 additions and 3 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue