Delete ReactPerf and ReactDebugTool Stubs (#12809)
This commit is contained in:
parent
73f59e6f31
commit
bde4b1659f
|
@ -118,28 +118,6 @@ const ReactFabric: ReactFabricType = {
|
|||
},
|
||||
};
|
||||
|
||||
if (__DEV__) {
|
||||
// $FlowFixMe
|
||||
Object.assign(
|
||||
ReactFabric.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|
||||
{
|
||||
// TODO: none of these work since Fiber. Remove these dependencies.
|
||||
// Used by RCTRenderingPerf, Systrace:
|
||||
ReactDebugTool: {
|
||||
addHook() {},
|
||||
removeHook() {},
|
||||
},
|
||||
// Used by ReactPerfStallHandler, RCTRenderingPerf:
|
||||
ReactPerf: {
|
||||
start() {},
|
||||
stop() {},
|
||||
printInclusive() {},
|
||||
printWasted() {},
|
||||
},
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
ReactFabricRenderer.injectIntoDevTools({
|
||||
findFiberByHostInstance: ReactNativeComponentTree.getClosestInstanceFromNode,
|
||||
getInspectorDataForViewTag: getInspectorDataForViewTag,
|
||||
|
|
|
@ -147,28 +147,6 @@ const ReactNativeRenderer: ReactNativeType = {
|
|||
},
|
||||
};
|
||||
|
||||
if (__DEV__) {
|
||||
// $FlowFixMe
|
||||
Object.assign(
|
||||
ReactNativeRenderer.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|
||||
{
|
||||
// TODO: none of these work since Fiber. Remove these dependencies.
|
||||
// Used by RCTRenderingPerf, Systrace:
|
||||
ReactDebugTool: {
|
||||
addHook() {},
|
||||
removeHook() {},
|
||||
},
|
||||
// Used by ReactPerfStallHandler, RCTRenderingPerf:
|
||||
ReactPerf: {
|
||||
start() {},
|
||||
stop() {},
|
||||
printInclusive() {},
|
||||
printWasted() {},
|
||||
},
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
ReactNativeFiberRenderer.injectIntoDevTools({
|
||||
findFiberByHostInstance: ReactNativeComponentTree.getClosestInstanceFromNode,
|
||||
getInspectorDataForViewTag: getInspectorDataForViewTag,
|
||||
|
|
|
@ -89,9 +89,7 @@ export type NativeMethodsMixinType = {
|
|||
|
||||
type SecretInternalsType = {
|
||||
NativeMethodsMixin: NativeMethodsMixinType,
|
||||
ReactDebugTool?: any,
|
||||
ReactNativeComponentTree: any,
|
||||
ReactPerf?: any,
|
||||
computeComponentStackForErrorReporting(tag: number): string,
|
||||
// TODO (bvaughn) Decide which additional types to expose here?
|
||||
// And how much information to fill in for the above types.
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) 2013-present, Facebook, Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @format
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
const {
|
||||
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|
||||
} = require('ReactNative');
|
||||
|
||||
module.exports =
|
||||
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactDebugTool;
|
|
@ -1,17 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) 2013-present, Facebook, Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @format
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
const {
|
||||
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|
||||
} = require('ReactNative');
|
||||
|
||||
module.exports = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactPerf;
|
Loading…
Reference in New Issue