Remove dead code for Android onLayout events (#39645)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39645 Removes some dead code related to emitting OnLayout evennts in Paper. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D49626884 fbshipit-source-id: c02f3345f0f50be00aa09630410a5ac55ab30773
This commit is contained in:
Родитель
fa87eaaebf
Коммит
596dfcc44c
|
@ -94,41 +94,6 @@ public class UIViewOperationQueue {
|
|||
}
|
||||
}
|
||||
|
||||
private final class EmitOnLayoutEventOperation extends ViewOperation {
|
||||
|
||||
private final int mScreenX;
|
||||
private final int mScreenY;
|
||||
private final int mScreenWidth;
|
||||
private final int mScreenHeight;
|
||||
|
||||
public EmitOnLayoutEventOperation(
|
||||
int tag, int screenX, int screenY, int screenWidth, int screenHeight) {
|
||||
super(tag);
|
||||
mScreenX = screenX;
|
||||
mScreenY = screenY;
|
||||
mScreenWidth = screenWidth;
|
||||
mScreenHeight = screenHeight;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute() {
|
||||
UIManagerModule uiManager = mReactApplicationContext.getNativeModule(UIManagerModule.class);
|
||||
|
||||
if (uiManager != null) {
|
||||
uiManager
|
||||
.getEventDispatcher()
|
||||
.dispatchEvent(
|
||||
OnLayoutEvent.obtain(
|
||||
-1 /* SurfaceId not used in classic renderer */,
|
||||
mTag,
|
||||
mScreenX,
|
||||
mScreenY,
|
||||
mScreenWidth,
|
||||
mScreenHeight));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private final class UpdateInstanceHandleOperation extends ViewOperation {
|
||||
|
||||
private final long mInstanceHandle;
|
||||
|
@ -767,12 +732,6 @@ public class UIViewOperationQueue {
|
|||
mOperations.add(new UpdatePropertiesOperation(reactTag, props));
|
||||
}
|
||||
|
||||
public void enqueueOnLayoutEvent(
|
||||
int tag, int screenX, int screenY, int screenWidth, int screenHeight) {
|
||||
mOperations.add(
|
||||
new EmitOnLayoutEventOperation(tag, screenX, screenY, screenWidth, screenHeight));
|
||||
}
|
||||
|
||||
public void enqueueUpdateLayout(
|
||||
int parentTag, int reactTag, int x, int y, int width, int height) {
|
||||
mOperations.add(new UpdateLayoutOperation(parentTag, reactTag, x, y, width, height));
|
||||
|
|
Загрузка…
Ссылка в новой задаче