0
0
Fork 0

Remove unused variables (#3906)

This commit is contained in:
Yamagishi Kazutoshi 2017-06-23 23:05:04 +09:00 committed by Eugen Rochko
parent 6fbb3841a6
commit eff9416469
63 changed files with 60 additions and 182 deletions

View file

@ -1,7 +1,6 @@
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchFavouritedStatuses, expandFavouritedStatuses } from '../../actions/favourites';
import Column from '../ui/components/column';
@ -15,19 +14,15 @@ const messages = defineMessages({
});
const mapStateToProps = state => ({
statusIds: state.getIn(['status_lists', 'favourites', 'items']),
loaded: state.getIn(['status_lists', 'favourites', 'loaded']),
me: state.getIn(['meta', 'me']),
});
class Favourites extends ImmutablePureComponent {
static propTypes = {
dispatch: PropTypes.func.isRequired,
statusIds: ImmutablePropTypes.list.isRequired,
loaded: PropTypes.bool,
intl: PropTypes.object.isRequired,
me: PropTypes.number.isRequired,
};
componentWillMount () {
@ -39,7 +34,7 @@ class Favourites extends ImmutablePureComponent {
}
render () {
const { statusIds, loaded, intl, me } = this.props;
const { loaded, intl } = this.props;
if (!loaded) {
return (