@samitouri / QOS-React / commits / fa98ecba9f

Remove Stack-only www shim code (#10019)

Dan Abramov committed Jun 22, 2017 at 02:38 UTC fa98ecba9f6c667621c61dbbb9899345d2196ea2
2 files changed +1 -48
scripts/rollup/shims/facebook-www/ReactFiberErrorLogger.js
+1 -9
@@ -15,13 +15,5 @@ const {
15 __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
16 } = require('ReactDOM-fb');
17
18 -// TODO: remove this when we delete Stack
19 -const ReactFiberErrorLoggerStackShim = {
20 - injection: {
21 - injectDialog() {},
22 - },
23 -};
24 -
18 module.exports =
26 - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactFiberErrorLogger ||
27 - ReactFiberErrorLoggerStackShim;
19 + __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactFiberErrorLogger;
scripts/rollup/shims/facebook-www/ReactPerf.js deleted
-39
@@ -1,39 +0,0 @@
1 -/**
2 - * Copyright 2013-present, Facebook, Inc.
3 - * All rights reserved.
4 - *
5 - * This source code is licensed under the BSD-style license found in the
6 - * LICENSE file in the root directory of this source tree. An additional grant
7 - * of patent rights can be found in the PATENTS file in the same directory.
8 - *
9 - * @providesModule ReactPerf
10 - */
11 -
12 -'use strict';
13 -
14 -const emptyFunction = require('fbjs/lib/emptyFunction');
15 -const {
16 - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
17 -} = require('ReactDOM-fb');
18 -
19 -// TODO: remove this whole module when we delete Stack
20 -const ReactPerfFiberShim = {
21 - getLastMeasurements: emptyFunction,
22 - getExclusive: emptyFunction,
23 - getInclusive: emptyFunction,
24 - getWasted: emptyFunction,
25 - getOperations: emptyFunction,
26 - printExclusive: emptyFunction,
27 - printInclusive: emptyFunction,
28 - printWasted: emptyFunction,
29 - printOperations: emptyFunction,
30 - start: emptyFunction,
31 - stop: emptyFunction,
32 - isRunning: emptyFunction,
33 - printDOM: emptyFunction,
34 - getMeasurementsSummaryMap: emptyFunction,
35 -};
36 -
37 -module.exports =
38 - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactPerf ||
39 - ReactPerfFiberShim;