Remove feature flag removeListenersOnDetach

Summary:
changelog: [internal]

Remove unused feature flag.

Reviewed By: yungsters

Differential Revision: D41188496

fbshipit-source-id: 13507197e7943aea9303ffb828feddb77c94ab0c
This commit is contained in:
Samuel Susla 2022-11-15 06:30:42 -08:00 коммит произвёл Facebook GitHub Bot
Родитель b8893c7003
Коммит 49d5e7c519
2 изменённых файлов: 1 добавлений и 6 удалений

Просмотреть файл

@ -30,9 +30,7 @@ export default class AnimatedNode {
__nativeAnimatedValueListener: ?any;
__attach(): void {}
__detach(): void {
if (ReactNativeFeatureFlags.removeListenersOnDetach()) {
this.removeAllListeners();
}
this.removeAllListeners();
if (this.__isNative && this.__nativeTag != null) {
NativeAnimatedHelper.API.dropAnimatedNode(this.__nativeTag);
this.__nativeTag = undefined;

Просмотреть файл

@ -43,8 +43,6 @@ export type FeatureFlags = {|
* to render react components driven by classes written in C++.
*/
enableCppRenderSystem: () => boolean,
removeListenersOnDetach: () => boolean,
|};
const ReactNativeFeatureFlags: FeatureFlags = {
@ -54,7 +52,6 @@ const ReactNativeFeatureFlags: FeatureFlags = {
animatedShouldDebounceQueueFlush: () => false,
animatedShouldUseSingleOp: () => false,
enableCppRenderSystem: () => false,
removeListenersOnDetach: () => false,
};
module.exports = ReactNativeFeatureFlags;