delete unused method

This commit is contained in:
Keith Grant
2019-04-04 09:17:33 -04:00
parent 04bd4d973a
commit c2a223bbb4

View File

@@ -12,10 +12,7 @@ import DataListToolbar from '../DataListToolbar';
import NotificationListItem from './NotificationListItem'; import NotificationListItem from './NotificationListItem';
import Pagination from '../Pagination'; import Pagination from '../Pagination';
import { import { parseQueryString } from '../../qs';
encodeQueryString,
parseQueryString,
} from '../../qs';
class Notifications extends Component { class Notifications extends Component {
columns = [ columns = [
@@ -55,7 +52,6 @@ class Notifications extends Component {
this.handleSetPage = this.handleSetPage.bind(this); this.handleSetPage = this.handleSetPage.bind(this);
this.handleSelectAll = this.handleSelectAll.bind(this); this.handleSelectAll = this.handleSelectAll.bind(this);
this.toggleNotification = this.toggleNotification.bind(this); this.toggleNotification = this.toggleNotification.bind(this);
this.updateUrl = this.updateUrl.bind(this);
this.createError = this.createError.bind(this); this.createError = this.createError.bind(this);
this.createSuccess = this.createSuccess.bind(this); this.createSuccess = this.createSuccess.bind(this);
this.readNotifications = this.readNotifications.bind(this); this.readNotifications = this.readNotifications.bind(this);
@@ -120,16 +116,6 @@ class Notifications extends Component {
this.handleSort(sortedColumnKey, sortOrder); this.handleSort(sortedColumnKey, sortOrder);
} }
updateUrl (queryParams) {
const { history, location, match } = this.props;
const pathname = match.url;
const search = `?${encodeQueryString(queryParams)}`;
if (search !== location.search) {
history.replace({ pathname, search });
}
}
async createError (id, isCurrentlyOn) { async createError (id, isCurrentlyOn) {
const { onCreateError, match } = this.props; const { onCreateError, match } = this.props;
const postParams = { id }; const postParams = { id };