From 7c2b65e9a3645d0c6f8bd88abe6f10ff6b016a9c Mon Sep 17 00:00:00 2001 From: jasper Date: Wed, 3 Apr 2019 09:08:23 -0700 Subject: [PATCH] Remove useless codes --- src/modules/statuses.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/modules/statuses.js b/src/modules/statuses.js index 660d5c26..8e58d673 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -27,8 +27,7 @@ const emptyNotifications = () => ({ data: [], idStore: {}, loading: false, - error: false, - fetcherId: null + error: false }) export const defaultState = () => ({ @@ -342,9 +341,6 @@ export const mutations = { oldTimeline.visibleStatusesObject = {} each(oldTimeline.visibleStatuses, (status) => { oldTimeline.visibleStatusesObject[status.id] = status }) }, - // setNotificationFetcher (state, { fetcherId }) { - // state.notifications.fetcherId = fetcherId - // }, resetStatuses (state) { const emptyState = defaultState() Object.entries(emptyState).forEach(([key, value]) => { @@ -433,12 +429,6 @@ const statuses = { setNotificationsSilence ({ rootState, commit }, { value }) { commit('setNotificationsSilence', { value }) }, - // stopFetchingNotifications ({ rootState, commit }) { - // if (rootState.statuses.notifications.fetcherId) { - // window.clearInterval(rootState.statuses.notifications.fetcherId) - // } - // commit('setNotificationFetcher', { fetcherId: null }) - // }, deleteStatus ({ rootState, commit }, status) { commit('setDeleted', { status }) apiService.deleteStatus({ id: status.id, credentials: rootState.users.currentUser.credentials })