Remove unused variables (#3906)
This commit is contained in:
		
							parent
							
								
									6fbb3841a6
								
							
						
					
					
						commit
						eff9416469
					
				
					 63 changed files with 60 additions and 182 deletions
				
			
		|  | @ -2,7 +2,6 @@ import React from 'react'; | |||
| import ImmutablePropTypes from 'react-immutable-proptypes'; | ||||
| import PropTypes from 'prop-types'; | ||||
| import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; | ||||
| import IconButton from '../../../components/icon_button'; | ||||
| import Button from '../../../components/button'; | ||||
| import StatusContent from '../../../components/status_content'; | ||||
| import Avatar from '../../../components/avatar'; | ||||
|  | @ -49,7 +48,7 @@ class BoostModal extends ImmutablePureComponent { | |||
|   } | ||||
| 
 | ||||
|   render () { | ||||
|     const { status, intl, onClose } = this.props; | ||||
|     const { status, intl } = this.props; | ||||
| 
 | ||||
|     return ( | ||||
|       <div className='modal-root__modal boost-modal'> | ||||
|  |  | |||
|  | @ -1,6 +1,6 @@ | |||
| import React from 'react'; | ||||
| import PropTypes from 'prop-types'; | ||||
| import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; | ||||
| import { injectIntl, FormattedMessage } from 'react-intl'; | ||||
| import Button from '../../../components/button'; | ||||
| 
 | ||||
| class ConfirmationModal extends React.PureComponent { | ||||
|  |  | |||
|  | @ -41,7 +41,7 @@ class ImageLoader extends React.PureComponent { | |||
| 
 | ||||
|   render() { | ||||
|     const { alt, src, previewSrc, width, height } = this.props; | ||||
|     const { loading, error } = this.state; | ||||
|     const { loading } = this.state; | ||||
| 
 | ||||
|     return ( | ||||
|       <div className='image-loader'> | ||||
|  |  | |||
|  | @ -1,5 +1,4 @@ | |||
| import React from 'react'; | ||||
| import LoadingIndicator from '../../../components/loading_indicator'; | ||||
| import ImmutablePropTypes from 'react-immutable-proptypes'; | ||||
| import PropTypes from 'prop-types'; | ||||
| import ExtendedVideoPlayer from '../../../components/extended_video_player'; | ||||
|  |  | |||
|  | @ -72,7 +72,7 @@ PageTwo.propTypes = { | |||
|   me: ImmutablePropTypes.map.isRequired, | ||||
| }; | ||||
| 
 | ||||
| const PageThree = ({ me, domain }) => ( | ||||
| const PageThree = ({ me }) => ( | ||||
|   <div className='onboarding-modal__page onboarding-modal__page-three'> | ||||
|     <div className='figure non-interactive'> | ||||
|       <Search | ||||
|  | @ -95,7 +95,6 @@ const PageThree = ({ me, domain }) => ( | |||
| 
 | ||||
| PageThree.propTypes = { | ||||
|   me: ImmutablePropTypes.map.isRequired, | ||||
|   domain: PropTypes.string.isRequired, | ||||
| }; | ||||
| 
 | ||||
| const PageFour = ({ domain, intl }) => ( | ||||
|  | @ -187,7 +186,7 @@ class OnboardingModal extends React.PureComponent { | |||
|     this.pages = [ | ||||
|       <PageOne acct={me.get('acct')} domain={domain} />, | ||||
|       <PageTwo me={me} />, | ||||
|       <PageThree me={me} domain={domain} />, | ||||
|       <PageThree me={me} />, | ||||
|       <PageFour domain={domain} intl={intl} />, | ||||
|       <PageSix admin={admin} domain={domain} />, | ||||
|     ]; | ||||
|  |  | |||
|  | @ -1,5 +1,4 @@ | |||
| import React from 'react'; | ||||
| import LoadingIndicator from '../../../components/loading_indicator'; | ||||
| import ImmutablePropTypes from 'react-immutable-proptypes'; | ||||
| import PropTypes from 'prop-types'; | ||||
| import ExtendedVideoPlayer from '../../../components/extended_video_player'; | ||||
|  |  | |||
|  | @ -1,12 +1,9 @@ | |||
| import { connect } from 'react-redux'; | ||||
| import { NotificationStack } from 'react-notification'; | ||||
| import { | ||||
|   dismissAlert, | ||||
|   clearAlerts, | ||||
| } from '../../../actions/alerts'; | ||||
| import { dismissAlert } from '../../../actions/alerts'; | ||||
| import { getAlerts } from '../../../selectors'; | ||||
| 
 | ||||
| const mapStateToProps = (state, props) => ({ | ||||
| const mapStateToProps = state => ({ | ||||
|   notifications: getAlerts(state), | ||||
| }); | ||||
| 
 | ||||
|  |  | |||
|  | @ -74,9 +74,6 @@ class WrappedRoute extends React.Component { | |||
| 
 | ||||
| } | ||||
| 
 | ||||
| const noOp = () => false; | ||||
| 
 | ||||
| 
 | ||||
| class UI extends React.PureComponent { | ||||
| 
 | ||||
|   static propTypes = { | ||||
|  |  | |||
		Reference in a new issue