From cc79e971a3efa64d141284cb386cb7532dcd4322 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Wed, 26 Jun 2019 18:43:25 -0700 Subject: [PATCH] Remove viewIsDescendantOf from Android code Summary: The metheod viewIsDescendantOf is not used anymore, this diff removes it from Android code Reviewed By: fkgozali Differential Revision: D16014664 fbshipit-source-id: e189be38a02cdf5c07ceab13454d52ab842fd0ca --- .../react/uimanager/UIImplementation.java | 16 ---------------- .../react/uimanager/UIManagerModule.java | 7 ------- 2 files changed, 23 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java index 2afbfc30851..483958049fe 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java @@ -542,22 +542,6 @@ public class UIImplementation { mOperationsQueue.enqueueFindTargetForTouch(reactTag, targetX, targetY, callback); } - /** - * Check if the first shadow node is the descendant of the second shadow node - */ - public void viewIsDescendantOf( - final int reactTag, - final int ancestorReactTag, - final Callback callback) { - ReactShadowNode node = mShadowNodeRegistry.getNode(reactTag); - ReactShadowNode ancestorNode = mShadowNodeRegistry.getNode(ancestorReactTag); - if (node == null || ancestorNode == null) { - callback.invoke(false); - return; - } - callback.invoke(node.isDescendantOf(ancestorNode)); - } - /** * Determines the location on screen, width, and height of the given view relative to the root * view and returns the values via an async callback. diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java index 8f3d64d0f8b..356d6f84be0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java @@ -629,13 +629,6 @@ public class UIManagerModule extends ReactContextBaseJavaModule callback); } - /** Check if the first shadow node is the descendant of the second shadow node */ - @ReactMethod - public void viewIsDescendantOf( - final int reactTag, final int ancestorReactTag, final Callback callback) { - mUIImplementation.viewIsDescendantOf(reactTag, ancestorReactTag, callback); - } - @Override @ReactMethod public void setJSResponder(int reactTag, boolean blockNativeResponder) {