Skip to content

Commit

Permalink
Delete unused code in console.js (#20860)
Browse files Browse the repository at this point in the history
Summary:
The isPrimitive method in [console.js](https://github.com/facebook/react-native/blob/5c2720b089dd0fb277771b0ac8b0e7788c493e5d/Libraries/polyfills/console.js#L364) is unused. It should be deleted.
Pull Request resolved: #20860

Differential Revision: D13396715

Pulled By: cpojer

fbshipit-source-id: ddfd828086106c997dcc77f5eae67adb6a0c1dfa
  • Loading branch information
tsangint authored and facebook-github-bot committed Dec 10, 2018
1 parent fb16af7 commit 3592122
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Libraries/polyfills/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,17 +361,6 @@ const inspect = (function() {
return typeof arg === 'function';
}

function isPrimitive(arg) {
return (
arg === null ||
typeof arg === 'boolean' ||
typeof arg === 'number' ||
typeof arg === 'string' ||
typeof arg === 'symbol' || // ES6 symbol
typeof arg === 'undefined'
);
}

function objectToString(o) {
return Object.prototype.toString.call(o);
}
Expand Down

0 comments on commit 3592122

Please sign in to comment.