Skip to content

Commit 67ecd77

Browse files
committed
Remove dead code
1 parent 8deb686 commit 67ecd77

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

modules/Configuration.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,7 @@
1-
var warning = require('react/lib/warning');
21
var invariant = require('react/lib/invariant');
32

4-
function checkPropTypes(componentName, propTypes, props) {
5-
for (var propName in propTypes) {
6-
if (propTypes.hasOwnProperty(propName)) {
7-
var error = propTypes[propName](props, propName, componentName);
8-
9-
if (error instanceof Error)
10-
warning(false, error.message);
11-
}
12-
}
13-
}
14-
153
var Configuration = {
164

17-
statics: {
18-
19-
validateProps: function (props) {
20-
checkPropTypes(this.displayName, this.propTypes, props);
21-
}
22-
23-
},
24-
255
render: function () {
266
invariant(
277
false,

0 commit comments

Comments
 (0)