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 коммит произвёл Facebook Github Bot
Родитель 50b40a41c0
Коммит b93221036a
1 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

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