mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Delete method MountingManager.removeRootView
Summary: The method MountingManager.removeRootView is not used anymore D16275118, I'm deleting from MountingManager motivation: cleanup as I'm fixing other bugs in Fabric Reviewed By: ejanzer Differential Revision: D16350582 fbshipit-source-id: 488cf2aa2feda78e6660a854af5da2718f9905de
This commit is contained in:
committed by
Facebook Github Bot
parent
c24387e45c
commit
c8ec2ae60c
@@ -99,20 +99,6 @@ public class MountingManager {
|
||||
}
|
||||
}
|
||||
|
||||
/** Releases all references to react root tag. */
|
||||
@UiThread
|
||||
public void removeRootView(int reactRootTag) {
|
||||
UiThreadUtil.assertOnUiThread();
|
||||
ViewState viewState = mTagToViewState.get(reactRootTag);
|
||||
if (viewState == null || !viewState.mIsRoot) {
|
||||
SoftAssertions.assertUnreachable(
|
||||
"View with tag " + reactRootTag + " is not registered as a root view");
|
||||
}
|
||||
if (viewState.mView != null) {
|
||||
dropView(viewState.mView);
|
||||
}
|
||||
}
|
||||
|
||||
@UiThread
|
||||
public void addViewAt(int parentTag, int tag, int index) {
|
||||
UiThreadUtil.assertOnUiThread();
|
||||
|
||||
Reference in New Issue
Block a user