From e53955e508ab84e422d67b50ac2f52f11e3160ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Ma=C5=82ecki?= Date: Wed, 14 Jan 2026 06:28:37 -0800 Subject: [PATCH] Remove unused code from AnimationBackend (#55155) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55155 ## Summary Removes unused code from AnimationBackend and corrects spelling errors. ## Changelog: [Internal] Reviewed By: zeyap, cipolleschi Differential Revision: D90259743 fbshipit-source-id: cbafaa3f3a77da4af1a70b79cfd55c0ad28df94d --- .../renderer/animationbackend/AnimationBackend.cpp | 10 ---------- .../react/renderer/animationbackend/AnimationBackend.h | 1 - 2 files changed, 11 deletions(-) diff --git a/packages/react-native/ReactCommon/react/renderer/animationbackend/AnimationBackend.cpp b/packages/react-native/ReactCommon/react/renderer/animationbackend/AnimationBackend.cpp index 064f6ce53ee..0b0d25e9d37 100644 --- a/packages/react-native/ReactCommon/react/renderer/animationbackend/AnimationBackend.cpp +++ b/packages/react-native/ReactCommon/react/renderer/animationbackend/AnimationBackend.cpp @@ -10,20 +10,10 @@ #include #include #include -#include #include "AnimatedPropsRegistry.h" namespace facebook::react { -static const auto layoutProps = std::set{ - WIDTH, HEIGHT, FLEX, MARGIN, PADDING, - POSITION, BORDER_WIDTH, ALIGN_CONTENT, ALIGN_ITEMS, ALIGN_SELF, - ASPECT_RATIO, BOX_SIZING, DISPLAY, FLEX_BASIS, FLEX_DIRECTION, - ROW_GAP, COLUMN_GAP, FLEX_GROW, FLEX_SHRINK, FLEX_WRAP, - JUSTIFY_CONTENT, MAX_HEIGHT, MAX_WIDTH, MIN_HEIGHT, MIN_WIDTH, - STYLE_OVERFLOW, POSITION_TYPE, DIRECTION, Z_INDEX, -}; - UIManagerNativeAnimatedDelegateBackendImpl:: UIManagerNativeAnimatedDelegateBackendImpl( std::weak_ptr animationBackend) diff --git a/packages/react-native/ReactCommon/react/renderer/animationbackend/AnimationBackend.h b/packages/react-native/ReactCommon/react/renderer/animationbackend/AnimationBackend.h index 28770e02bbe..62030edff94 100644 --- a/packages/react-native/ReactCommon/react/renderer/animationbackend/AnimationBackend.h +++ b/packages/react-native/ReactCommon/react/renderer/animationbackend/AnimationBackend.h @@ -17,7 +17,6 @@ #include #include #include "AnimatedProps.h" -#include "AnimatedPropsBuilder.h" #include "AnimatedPropsRegistry.h" #include "AnimationBackendCommitHook.h"