Skip to content

Commit 8c1d191

Browse files
mdvaccafacebook-github-bot
authored andcommitted
EZ cleanup of unnecessary variable (#52892)
Summary: Pull Request resolved: #52892 EZ cleanup of unnecessary variable changelog: [internal] internal Reviewed By: mlord93 Differential Revision: D79119092 fbshipit-source-id: 10b8675763dd203a832648ef3c99520dcdaa08da
1 parent daeb6e9 commit 8c1d191

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,6 @@ public class FabricUIManager
196196

197197
private boolean mDriveCxxAnimations = false;
198198

199-
private boolean mDriveCxxNativeAnimated = ReactNativeFeatureFlags.cxxNativeAnimatedEnabled();
200-
201199
private long mDispatchViewUpdatesTime = 0l;
202200
private long mCommitStartTime = 0l;
203201
private long mLayoutTime = 0l;
@@ -1478,7 +1476,8 @@ public void doFrameGuarded(long frameTimeNanos) {
14781476
// There is a race condition here between getting/setting
14791477
// `mDriveCxxAnimations` which shouldn't matter; it's safe to call
14801478
// the mBinding method, unless mBinding has gone away.
1481-
if ((mDriveCxxAnimations || mDriveCxxNativeAnimated) && mBinding != null) {
1479+
if ((mDriveCxxAnimations || ReactNativeFeatureFlags.cxxNativeAnimatedEnabled())
1480+
&& mBinding != null) {
14821481
mBinding.driveCxxAnimations();
14831482
}
14841483

0 commit comments

Comments
 (0)