diff --git a/src/renderer/store/modules/subscription-cache.js b/src/renderer/store/modules/subscription-cache.js index 72d35f6361b17..d8ad6ff32cf04 100644 --- a/src/renderer/store/modules/subscription-cache.js +++ b/src/renderer/store/modules/subscription-cache.js @@ -14,34 +14,18 @@ const state = { const getters = { getSubscriptionCacheReady: (state) => state.subscriptionCacheReady, - getVideoCache: (state) => { - return state.videoCache - }, - getVideoCacheByChannel: (state) => (channelId) => { return state.videoCache[channelId] }, - getShortsCache: (state) => { - return state.shortsCache - }, - getShortsCacheByChannel: (state) => (channelId) => { return state.shortsCache[channelId] }, - getLiveCache: (state) => { - return state.liveCache - }, - getLiveCacheByChannel: (state) => (channelId) => { return state.liveCache[channelId] }, - getPostsCache: (state) => { - return state.postsCache - }, - getPostsCacheByChannel: (state) => (channelId) => { return state.postsCache[channelId] }, @@ -175,7 +159,7 @@ const actions = { } }, - async clearSubscriptionsCache({ commit }, payload) { + async clearSubscriptionsCache({ commit }) { try { await DBSubscriptionCacheHandlers.deleteAll() commit('clearCaches') diff --git a/src/renderer/store/modules/utils.js b/src/renderer/store/modules/utils.js index 19d3e3f6f9004..53385c9c22a61 100644 --- a/src/renderer/store/modules/utils.js +++ b/src/renderer/store/modules/utils.js @@ -52,10 +52,6 @@ const state = { externalPlayerNames: [], externalPlayerValues: [], externalPlayerCmdArguments: {}, - lastVideoRefreshTimestampByProfile: {}, - lastShortRefreshTimestampByProfile: {}, - lastLiveRefreshTimestampByProfile: {}, - lastCommunityRefreshTimestampByProfile: {}, lastPopularRefreshTimestamp: '', lastTrendingRefreshTimestamp: '', subscriptionFirstAutoFetchRunData: { @@ -75,10 +71,6 @@ const getters = { return state.outlinesHidden }, - getCurrentVolume(state) { - return state.currentVolume - }, - getSessionSearchHistory(state) { return state.sessionSearchHistory },