Skip to content

Commit b932210

Browse files
sherginfacebook-github-bot
authored andcommitted
Fabric: Removed unnecessary call in RootShadowNode::clone
Summary: The removed code does nothing because we are replacing the oldChild with newChild several lines above. Reviewed By: JoshuaGross Differential Revision: D14402637 fbshipit-source-id: 731a950f373e20f7d5bae3cbf6470335d3694ccc
1 parent 50b40a4 commit b932210

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ReactCommon/fabric/components/root/RootShadowNode.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ UnsharedRootShadowNode RootShadowNode::clone(
7070
/* .children = */ sharedChildren,
7171
});
7272

73-
newParent->replaceChild(oldChild, newChild);
74-
7573
oldChild = oldParent;
7674
newChild = newParent;
7775
}

0 commit comments

Comments
 (0)