Skip to content

Commit

Permalink
Remove React.error and React.warn (#16126)
Browse files Browse the repository at this point in the history
* Remove React.error/React.warn with React.getComponentStack
  • Loading branch information
Brian Vaughn authored Jul 12, 2019
1 parent 29b4559 commit 8d413bf
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 240 deletions.
4 changes: 0 additions & 4 deletions packages/react/src/React.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ import {
jsxWithValidationDynamic,
} from './ReactElementValidator';
import ReactSharedInternals from './ReactSharedInternals';
import {error, warn} from './withComponentStack';
import createEvent from 'shared/createEventComponent';
import {enableJSXTransformAPI, enableFlareAPI} from 'shared/ReactFeatureFlags';
const React = {
Expand All @@ -72,9 +71,6 @@ const React = {
lazy,
memo,

error,
warn,

useCallback,
useContext,
useEffect,
Expand Down
188 changes: 0 additions & 188 deletions packages/react/src/__tests__/withComponentStack-test.js

This file was deleted.

48 changes: 0 additions & 48 deletions packages/react/src/withComponentStack.js

This file was deleted.

0 comments on commit 8d413bf

Please sign in to comment.