From de3c0393741d30a0b484d649e73dfc1a17872b28 Mon Sep 17 00:00:00 2001 From: Bruno Dias Date: Thu, 5 Oct 2017 19:59:06 -0300 Subject: [PATCH] [chore] remove warning about injectCSS. `injectCSS` was deprecated since version 0.5.0. Time to finally remove it. --- src/components/Modal.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/components/Modal.js b/src/components/Modal.js index bf26683b..8fbfdf44 100644 --- a/src/components/Modal.js +++ b/src/components/Modal.js @@ -24,16 +24,6 @@ export default class Modal extends Component { ariaAppHider.setElement(element); } - /* eslint-disable no-console */ - static injectCSS() { - (process.env.NODE_ENV !== "production") - && console.warn( - 'React-Modal: injectCSS has been deprecated ' + - 'and no longer has any effect. It will be removed in a later version' - ); - } - /* eslint-enable no-console */ - /* eslint-disable react/no-unused-prop-types */ static propTypes = { isOpen: PropTypes.bool.isRequired,