mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 20:42:21 +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
Notes:
sideshowbarker
2024-07-18 20:43:53 +09:00
Author: https://github.com/awesomekling
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