From 1e4f364f873fdeb98e394899fa17079a4404eaaa Mon Sep 17 00:00:00 2001 From: Samuel Susla Date: Sun, 12 Sep 2021 08:55:21 -0700 Subject: [PATCH] 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 --- .../animations/LayoutAnimationKeyFrameManager.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp b/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp index 832082db159..31e08ff8dcc 100644 --- a/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +++ b/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp @@ -303,7 +303,6 @@ LayoutAnimationKeyFrameManager::pullTransaction( // "immediate mutations". The corresponding "insert" will also be executed // immediately and animated as an update. std::vector keyFramesToAnimate; - std::vector 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.