Remove unused method.

This commit is contained in:
kialam 2019-02-19 10:19:47 -05:00
parent bba1c4f5b6
commit c3493b0539
No known key found for this signature in database
GPG Key ID: 2D0E60E4B8C7EA0F

View File

@ -54,7 +54,6 @@ class Notifications extends Component {
this.onSort = this.onSort.bind(this);
this.onSetPage = this.onSetPage.bind(this);
this.onSelectAll = this.onSelectAll.bind(this);
this.onSelect = this.onSelect.bind(this);
this.toggleNotification = this.toggleNotification.bind(this);
this.updateUrl = this.updateUrl.bind(this);
this.postToError = this.postToError.bind(this);
@ -113,18 +112,6 @@ class Notifications extends Component {
this.setState({ selected });
};
onSelect = id => {
const { selected } = this.state;
const isSelected = selected.includes(id);
if (isSelected) {
this.setState({ selected: selected.filter(s => s !== id) });
} else {
this.setState({ selected: selected.concat(id) });
}
};
toggleNotification = (id, isCurrentlyOn, status) => {
if (status === 'success') {
this.postToSuccess(id, isCurrentlyOn);