From 0820c0ea9aaa8e1d1c416d00ce65024f0589f62f Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Fri, 31 Mar 2017 16:17:33 +0100 Subject: [PATCH] Remove unused ViewportMetrics shim --- .../shims/facebook-www/ViewportMetrics.js | 18 ------------------ src/fb/ReactDOMFBEntry.js | 1 - src/fb/ReactDOMFiberFBEntry.js | 1 - 3 files changed, 20 deletions(-) delete mode 100644 scripts/rollup/shims/facebook-www/ViewportMetrics.js diff --git a/scripts/rollup/shims/facebook-www/ViewportMetrics.js b/scripts/rollup/shims/facebook-www/ViewportMetrics.js deleted file mode 100644 index 02807a38a4..0000000000 --- a/scripts/rollup/shims/facebook-www/ViewportMetrics.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * @providesModule ViewportMetrics - */ - -'use strict'; - -const { - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, -} = require('ReactDOM-fb'); - -module.exports = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ViewportMetrics; diff --git a/src/fb/ReactDOMFBEntry.js b/src/fb/ReactDOMFBEntry.js index ecbcced37d..7545c5ce3f 100644 --- a/src/fb/ReactDOMFBEntry.js +++ b/src/fb/ReactDOMFBEntry.js @@ -40,7 +40,6 @@ ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = { EventPluginUtils: require('EventPluginUtils'), EventPropagators: require('EventPropagators'), SyntheticUIEvent: require('SyntheticUIEvent'), - ViewportMetrics: require('ViewportMetrics'), }; if (__DEV__) { diff --git a/src/fb/ReactDOMFiberFBEntry.js b/src/fb/ReactDOMFiberFBEntry.js index 0f74af75d0..c019d38c00 100644 --- a/src/fb/ReactDOMFiberFBEntry.js +++ b/src/fb/ReactDOMFiberFBEntry.js @@ -41,7 +41,6 @@ ReactDOMFiber.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = { EventPluginUtils: require('EventPluginUtils'), EventPropagators: require('EventPropagators'), SyntheticUIEvent: require('SyntheticUIEvent'), - ViewportMetrics: require('ViewportMetrics'), }; if (__DEV__) {