diff --git a/ReactCommon/fabric/core/layout/LayoutContext.h b/ReactCommon/fabric/core/layout/LayoutContext.h index 6f8d49ff4..1046fd001 100644 --- a/ReactCommon/fabric/core/layout/LayoutContext.h +++ b/ReactCommon/fabric/core/layout/LayoutContext.h @@ -24,12 +24,6 @@ struct LayoutContext { * Compound absolute position of the node relative to the root node. */ Point absolutePosition {0, 0}; - - /* - * Collection of shadow nodes which were chanded during the layout pass, - * and which associated views might need to be updated. - */ - std::shared_ptr> affectedShadowNodes {nullptr}; }; } // namespace react diff --git a/ReactCommon/fabric/uimanager/Scheduler.cpp b/ReactCommon/fabric/uimanager/Scheduler.cpp index 8b5038c31..6ad2f45f0 100644 --- a/ReactCommon/fabric/uimanager/Scheduler.cpp +++ b/ReactCommon/fabric/uimanager/Scheduler.cpp @@ -65,7 +65,6 @@ void Scheduler::uiManagerDidFinishTransaction(Tag rootTag, const SharedShadowNod auto nonConstNewRootShadowNode = std::const_pointer_cast(newRootShadowNode); LayoutContext layoutContext = LayoutContext(); - layoutContext.affectedShadowNodes = std::make_shared>(); LOG(INFO) << "Old Shadow Tree: \n" << oldRootShadowNode->getDebugDescription(); LOG(INFO) << "New Shadow Tree *before* layout: \n" << newRootShadowNode->getDebugDescription(); diff --git a/ReactCommon/fabric/view/yoga/YogaLayoutableShadowNode.cpp b/ReactCommon/fabric/view/yoga/YogaLayoutableShadowNode.cpp index d91def613..bce88ce68 100644 --- a/ReactCommon/fabric/view/yoga/YogaLayoutableShadowNode.cpp +++ b/ReactCommon/fabric/view/yoga/YogaLayoutableShadowNode.cpp @@ -130,10 +130,7 @@ void YogaLayoutableShadowNode::layoutChildren(LayoutContext layoutContext) { auto nonConstYogaLayoutableChild = std::const_pointer_cast(yogaLayoutableChild); LayoutMetrics childLayoutMetrics = layoutMetricsFromYogaNode(*nonConstYogaLayoutableChild->yogaNode_); - bool isAffected = nonConstYogaLayoutableChild->setLayoutMetrics(childLayoutMetrics); - if (isAffected) { - layoutContext.affectedShadowNodes->insert(child); - } + nonConstYogaLayoutableChild->setLayoutMetrics(childLayoutMetrics); } }