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
This commit is contained in:
Valentin Shergin
2019-03-18 23:38:11 -07:00
committed by Facebook Github Bot
parent 50b40a41c0
commit b93221036a

View File

@@ -70,8 +70,6 @@ UnsharedRootShadowNode RootShadowNode::clone(
/* .children = */ sharedChildren,
});
newParent->replaceChild(oldChild, newChild);
oldChild = oldParent;
newChild = newParent;
}