EZ cleanup of unnecessary variable (#52892)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/52892

 EZ cleanup of unnecessary variable

changelog: [internal] internal

Reviewed By: mlord93

Differential Revision: D79119092

fbshipit-source-id: 10b8675763dd203a832648ef3c99520dcdaa08da
This commit is contained in:
David Vacca
2025-07-28 18:16:05 -07:00
committed by Facebook GitHub Bot
parent daeb6e99ab
commit 8c1d191f1a
@@ -196,8 +196,6 @@ public class FabricUIManager
private boolean mDriveCxxAnimations = false;
private boolean mDriveCxxNativeAnimated = ReactNativeFeatureFlags.cxxNativeAnimatedEnabled();
private long mDispatchViewUpdatesTime = 0l;
private long mCommitStartTime = 0l;
private long mLayoutTime = 0l;
@@ -1478,7 +1476,8 @@ public class FabricUIManager
// There is a race condition here between getting/setting
// `mDriveCxxAnimations` which shouldn't matter; it's safe to call
// the mBinding method, unless mBinding has gone away.
if ((mDriveCxxAnimations || mDriveCxxNativeAnimated) && mBinding != null) {
if ((mDriveCxxAnimations || ReactNativeFeatureFlags.cxxNativeAnimatedEnabled())
&& mBinding != null) {
mBinding.driveCxxAnimations();
}