diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/StateBuilder.java b/ReactAndroid/src/main/java/com/facebook/react/flat/StateBuilder.java index 43fc609bd..7e2318f9d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/StateBuilder.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/StateBuilder.java @@ -596,7 +596,6 @@ import com.facebook.react.uimanager.events.EventDispatcher; for (int i = 0, childCount = node.getChildCount(); i != childCount; ++i) { ReactShadowNode child = node.getChildAt(i); if (child.isVirtual()) { - markLayoutSeenRecursively(child); continue; } @@ -617,21 +616,6 @@ import com.facebook.react.uimanager.events.EventDispatcher; return updated; } - /** - * Recursively walks this node and child nodes, marking the layout state as UP_TO_DATE. - * - * @param node The node to recur down from. - */ - private void markLayoutSeenRecursively(ReactShadowNode node) { - if (node.hasNewLayout()) { - node.markLayoutSeen(); - } - - for (int i = 0, childCount = node.getChildCount(); i != childCount; ++i) { - markLayoutSeenRecursively(node.getChildAt(i)); - } - } - /** * Collects state and enqueues View boundary updates for a given node tree. Returns true if * this node or any of its descendants that mount to View generated any updates.