@samitouri / QOS-React-2 / commits / 10277cc5ba

Remove unused canonical check in fiber host component (#16914)

Eli White committed Oct 2, 2019 at 11:07 UTC 10277cc5ba3fa1dfca8aac02c375d79f3cabd337
1 file changed -9
packages/react-native-renderer/src/ReactNativeFiberHostComponent.js
-9
@@ -83,15 +83,6 @@ class ReactNativeFiberHostComponent {
83 relativeNode = relativeToNativeNode;
84 } else if (relativeToNativeNode._nativeTag) {
85 relativeNode = relativeToNativeNode._nativeTag;
86 - } else if (
87 - /* $FlowFixMe canonical doesn't exist on the node.
88 - I think this branch is dead and will remove it in a followup */
89 - relativeToNativeNode.canonical &&
90 - relativeToNativeNode.canonical._nativeTag
91 - ) {
92 - /* $FlowFixMe canonical doesn't exist on the node.
93 - I think this branch is dead and will remove it in a followup */
94 - relativeNode = relativeToNativeNode.canonical._nativeTag;
86 }
87
88 if (relativeNode == null) {