From 206ea36253146727b5c858ddf37d7ec2fb2e12ef Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Tue, 25 Aug 2020 14:12:19 -0700 Subject: [PATCH] RN: Delete `Animated/polyfills` Summary: Deletes `Animated/polyfills` which is no longer necessary (and only creates extra configuration burden). Changelog: [Internal] Reviewed By: cpojer Differential Revision: D22451963 fbshipit-source-id: 7a9a48b96b3783f2f6340226bdafd2eaa43f32e7 --- .../Animated/polyfills/InteractionManager.js | 15 ----------- Libraries/Animated/polyfills/Set.js | 26 ------------------- Libraries/Animated/polyfills/flattenStyle.js | 13 ---------- 3 files changed, 54 deletions(-) delete mode 100644 Libraries/Animated/polyfills/InteractionManager.js delete mode 100644 Libraries/Animated/polyfills/Set.js delete mode 100644 Libraries/Animated/polyfills/flattenStyle.js diff --git a/Libraries/Animated/polyfills/InteractionManager.js b/Libraries/Animated/polyfills/InteractionManager.js deleted file mode 100644 index c2247c762a3..00000000000 --- a/Libraries/Animated/polyfills/InteractionManager.js +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @format - */ - -'use strict'; - -module.exports = { - createInteractionHandle: function() {}, - clearInteractionHandle: function() {}, -}; diff --git a/Libraries/Animated/polyfills/Set.js b/Libraries/Animated/polyfills/Set.js deleted file mode 100644 index 39205b8f9f9..00000000000 --- a/Libraries/Animated/polyfills/Set.js +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @format - */ - -'use strict'; - -function SetPolyfill() { - this._cache = []; -} - -SetPolyfill.prototype.add = function(e) { - if (this._cache.indexOf(e) === -1) { - this._cache.push(e); - } -}; - -SetPolyfill.prototype.forEach = function(cb) { - this._cache.forEach(cb); -}; - -module.exports = SetPolyfill; diff --git a/Libraries/Animated/polyfills/flattenStyle.js b/Libraries/Animated/polyfills/flattenStyle.js deleted file mode 100644 index b50057af284..00000000000 --- a/Libraries/Animated/polyfills/flattenStyle.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @format - */ - -'use strict'; -module.exports = function(style) { - return style; -};