From c3493b0539daf2bd3ccae8410d2914396cc4fdbb Mon Sep 17 00:00:00 2001 From: kialam Date: Tue, 19 Feb 2019 10:19:47 -0500 Subject: [PATCH] Remove unused method. --- .../NotificationsList/Notifications.list.jsx | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/components/NotificationsList/Notifications.list.jsx b/src/components/NotificationsList/Notifications.list.jsx index d0ca3879f9..38f37044ce 100644 --- a/src/components/NotificationsList/Notifications.list.jsx +++ b/src/components/NotificationsList/Notifications.list.jsx @@ -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);