From b93221036a3e1644597f02da52263c12e3c26ba8 Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Mon, 18 Mar 2019 23:38:11 -0700 Subject: [PATCH] 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 --- ReactCommon/fabric/components/root/RootShadowNode.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/ReactCommon/fabric/components/root/RootShadowNode.cpp b/ReactCommon/fabric/components/root/RootShadowNode.cpp index 2037f01913f..df4a400cffa 100644 --- a/ReactCommon/fabric/components/root/RootShadowNode.cpp +++ b/ReactCommon/fabric/components/root/RootShadowNode.cpp @@ -70,8 +70,6 @@ UnsharedRootShadowNode RootShadowNode::clone( /* .children = */ sharedChildren, }); - newParent->replaceChild(oldChild, newChild); - oldChild = oldParent; newChild = newParent; }