Remove movesToAnimate var which was never read

Summary:
changelog: [intenal]

The variable is never read, removing it.

Reviewed By: RSNara

Differential Revision: D30767134

fbshipit-source-id: de72740f9dc7ad10d651129404fe4df093e6206d
This commit is contained in:
Samuel Susla
2021-09-12 08:56:32 -07:00
committed by Facebook GitHub Bot
parent 273f631535
commit 1e4f364f87
@@ -303,7 +303,6 @@ LayoutAnimationKeyFrameManager::pullTransaction(
// "immediate mutations". The corresponding "insert" will also be executed
// immediately and animated as an update.
std::vector<AnimationKeyFrame> keyFramesToAnimate;
std::vector<AnimationKeyFrame> movesToAnimate;
auto const layoutAnimationConfig = animation.layoutAnimationConfig;
for (auto const &mutation : mutations) {
ShadowView baselineShadowView =
@@ -369,16 +368,6 @@ LayoutAnimationKeyFrameManager::pullTransaction(
bool haveConfiguration =
mutationConfig.animationType != AnimationType::None;
if (wasInsertedTagRemoved && haveConfiguration) {
movesToAnimate.push_back(AnimationKeyFrame{
/* .finalMutationsForKeyFrame = */ {},
/* .type = */ AnimationConfigurationType::Update,
/* .tag = */ mutation.newChildShadowView.tag,
/* .parentView = */ mutation.parentShadowView,
/* .viewStart = */ movedIt->second.oldChildShadowView,
/* .viewEnd = */ mutation.newChildShadowView});
}
// Creates and inserts should also be executed immediately.
// Mutations that would otherwise be animated, but have no
// configuration, are also executed immediately.