Remove Stack-only www shim code (#10019)

This commit is contained in:
Dan Abramov
2017-06-22 02:38:02 +01:00
committed by GitHub
parent 8e251c5416
commit fa98ecba9f
2 changed files with 1 additions and 48 deletions

View File

@@ -15,13 +15,5 @@ const {
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
} = require('ReactDOM-fb');
// TODO: remove this when we delete Stack
const ReactFiberErrorLoggerStackShim = {
injection: {
injectDialog() {},
},
};
module.exports =
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactFiberErrorLogger ||
ReactFiberErrorLoggerStackShim;
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactFiberErrorLogger;

View File

@@ -1,39 +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 ReactPerf
*/
'use strict';
const emptyFunction = require('fbjs/lib/emptyFunction');
const {
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
} = require('ReactDOM-fb');
// TODO: remove this whole module when we delete Stack
const ReactPerfFiberShim = {
getLastMeasurements: emptyFunction,
getExclusive: emptyFunction,
getInclusive: emptyFunction,
getWasted: emptyFunction,
getOperations: emptyFunction,
printExclusive: emptyFunction,
printInclusive: emptyFunction,
printWasted: emptyFunction,
printOperations: emptyFunction,
start: emptyFunction,
stop: emptyFunction,
isRunning: emptyFunction,
printDOM: emptyFunction,
getMeasurementsSummaryMap: emptyFunction,
};
module.exports =
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactPerf ||
ReactPerfFiberShim;