Skip to content

Commit caff37d

Browse files
huntiefacebook-github-bot
authored andcommitted
Remove internal calls to BugReporting (#52374)
Summary: Pull Request resolved: #52374 Precursor to removing `BugReporting` from React Native's internals. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D77014724 fbshipit-source-id: 91cd38fe6c39656573fecdeff18162073df2fb42
1 parent 7998914 commit caff37d

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

packages/react-native/Libraries/ReactNative/AppRegistryImpl.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import type {
2222
WrapperComponentProvider,
2323
} from './AppRegistry.flow';
2424

25-
import BugReporting from '../BugReporting/BugReporting';
2625
import createPerformanceLogger from '../Utilities/createPerformanceLogger';
2726
import SceneTracker from '../Utilities/SceneTracker';
2827
import {coerceDisplayMode} from './DisplayMode';
@@ -36,7 +35,6 @@ type TaskCanceller = () => void;
3635
type TaskCancelProvider = () => TaskCanceller;
3736

3837
const runnables: Runnables = {};
39-
let runCount = 1;
4038
const sections: Runnables = {};
4139
const taskProviders: Map<string, TaskProvider> = new Map();
4240
const taskCancelProviders: Map<string, TaskCancelProvider> = new Map();
@@ -167,10 +165,6 @@ export function runApplication(
167165
const logParams = __DEV__ ? ` with ${JSON.stringify(appParameters)}` : '';
168166
const msg = `Running "${appKey}"${logParams}`;
169167
console.log(msg);
170-
BugReporting.addSource(
171-
'AppRegistry.runApplication' + runCount++,
172-
() => msg,
173-
);
174168
}
175169
invariant(
176170
runnables[appKey],
@@ -199,10 +193,6 @@ export function setSurfaceProps(
199193
'" with ' +
200194
JSON.stringify(appParameters);
201195
console.log(msg);
202-
BugReporting.addSource(
203-
'AppRegistry.setSurfaceProps' + runCount++,
204-
() => msg,
205-
);
206196
}
207197
invariant(
208198
runnables[appKey],

0 commit comments

Comments
 (0)