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
This commit is contained in:
David Vacca
2019-06-26 18:43:25 -07:00
committed by Facebook Github Bot
parent 9ae7f0c7da
commit cc79e971a3
2 changed files with 0 additions and 23 deletions
@@ -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.
@@ -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) {