From 10277cc5ba3fa1dfca8aac02c375d79f3cabd337 Mon Sep 17 00:00:00 2001 From: Eli White Date: Wed, 2 Oct 2019 11:07:20 -0700 Subject: [PATCH] Remove unused canonical check in fiber host component (#16914) --- .../src/ReactNativeFiberHostComponent.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/packages/react-native-renderer/src/ReactNativeFiberHostComponent.js b/packages/react-native-renderer/src/ReactNativeFiberHostComponent.js index 3b3b901f95afa..b49b31008f740 100644 --- a/packages/react-native-renderer/src/ReactNativeFiberHostComponent.js +++ b/packages/react-native-renderer/src/ReactNativeFiberHostComponent.js @@ -83,15 +83,6 @@ class ReactNativeFiberHostComponent { relativeNode = relativeToNativeNode; } else if (relativeToNativeNode._nativeTag) { relativeNode = relativeToNativeNode._nativeTag; - } else if ( - /* $FlowFixMe canonical doesn't exist on the node. - I think this branch is dead and will remove it in a followup */ - relativeToNativeNode.canonical && - relativeToNativeNode.canonical._nativeTag - ) { - /* $FlowFixMe canonical doesn't exist on the node. - I think this branch is dead and will remove it in a followup */ - relativeNode = relativeToNativeNode.canonical._nativeTag; } if (relativeNode == null) {