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 Pagination from '../Pagination';
import {
encodeQueryString,
parseQueryString,
} from '../../qs';
import { parseQueryString } from '../../qs';
class Notifications extends Component {
columns = [
@ -55,7 +52,6 @@ class Notifications extends Component {
this.handleSetPage = this.handleSetPage.bind(this);
this.handleSelectAll = this.handleSelectAll.bind(this);
this.toggleNotification = this.toggleNotification.bind(this);
this.updateUrl = this.updateUrl.bind(this);
this.createError = this.createError.bind(this);
this.createSuccess = this.createSuccess.bind(this);
this.readNotifications = this.readNotifications.bind(this);
@ -120,16 +116,6 @@ class Notifications extends Component {
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) {
const { onCreateError, match } = this.props;
const postParams = { id };