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) {