diff --git a/src/addons/link/ReactLink.js b/src/addons/link/ReactLink.js index 3c6d55248e2c..273c4fdcc1d1 100644 --- a/src/addons/link/ReactLink.js +++ b/src/addons/link/ReactLink.js @@ -34,7 +34,6 @@ * consumption of ReactLink easier; see LinkedValueUtils and LinkedStateMixin. */ -var PropTypes = require('prop-types'); var React = require('React'); /** @@ -49,26 +48,4 @@ function ReactLink(value, requestChange) { this.requestChange = requestChange; } -/** - * Creates a PropType that enforces the ReactLink API and optionally checks the - * type of the value being passed inside the link. Example: - * - * MyComponent.propTypes = { - * tabIndexLink: ReactLink.PropTypes.link(React.PropTypes.number) - * } - */ -function createLinkTypeChecker(linkType) { - var shapes = { - value: linkType === undefined - ? PropTypes.any.isRequired - : linkType.isRequired, - requestChange: PropTypes.func.isRequired, - }; - return PropTypes.shape(shapes); -} - -ReactLink.PropTypes = { - link: createLinkTypeChecker, -}; - module.exports = ReactLink;