mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Fix DeadVariable and NotInvokedPrivateMethod: Remove unused code (#55503)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55503 Remove unused code that was triggering lint warnings: 1. Remove `walkUpUntilNativeKindIsParent` private method that was never invoked 2. Remove `parent` variable in `applyLayoutBase` that was never accessed Both were leftover from NativeKind removal. changelog: [internal] internal Reviewed By: alanleedev Differential Revision: D92021031 fbshipit-source-id: 7549efd01ddf167df4a130c255ccf1c8d663e1d2
This commit is contained in:
1 parent
283442ca39
commit
78e2dc4549
1 file changed
-8
-8
@@ -231,12 +231,6 @@ public class NativeViewHierarchyOptimizer {
|
||||
mTagsWithLayoutVisited.clear();
|
||||
}
|
||||
|
||||
private NodeIndexPair walkUpUntilNativeKindIsParent(
|
||||
ReactShadowNode node, int indexInNativeChildren) {
|
||||
// Logic removed due to NativeKind removal
|
||||
return new NodeIndexPair(node, indexInNativeChildren);
|
||||
}
|
||||
|
||||
private void addNodeToNode(ReactShadowNode parent, ReactShadowNode child, int index) {
|
||||
// Logic removed due to NativeKind removal
|
||||
}
|
||||
@@ -289,8 +283,6 @@ public class NativeViewHierarchyOptimizer {
|
||||
}
|
||||
mTagsWithLayoutVisited.put(tag, true);
|
||||
|
||||
ReactShadowNode parent = node.getParent();
|
||||
|
||||
// We use screenX/screenY (which round to integer pixels) at each node in the hierarchy to
|
||||
// emulate what the layout would look like if it were actually built with native views which
|
||||
// have to have integral top/left/bottom/right values
|
||||
|
||||
Reference in new issue
Block a user