Skip to content

Commit 2e7ae3b

Browse files
authored
Cleanup unused code in the store (#5776)
1 parent 5737ed9 commit 2e7ae3b

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

src/renderer/store/modules/subscription-cache.js

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,18 @@ const state = {
1414
const getters = {
1515
getSubscriptionCacheReady: (state) => state.subscriptionCacheReady,
1616

17-
getVideoCache: (state) => {
18-
return state.videoCache
19-
},
20-
2117
getVideoCacheByChannel: (state) => (channelId) => {
2218
return state.videoCache[channelId]
2319
},
2420

25-
getShortsCache: (state) => {
26-
return state.shortsCache
27-
},
28-
2921
getShortsCacheByChannel: (state) => (channelId) => {
3022
return state.shortsCache[channelId]
3123
},
3224

33-
getLiveCache: (state) => {
34-
return state.liveCache
35-
},
36-
3725
getLiveCacheByChannel: (state) => (channelId) => {
3826
return state.liveCache[channelId]
3927
},
4028

41-
getPostsCache: (state) => {
42-
return state.postsCache
43-
},
44-
4529
getPostsCacheByChannel: (state) => (channelId) => {
4630
return state.postsCache[channelId]
4731
},
@@ -175,7 +159,7 @@ const actions = {
175159
}
176160
},
177161

178-
async clearSubscriptionsCache({ commit }, payload) {
162+
async clearSubscriptionsCache({ commit }) {
179163
try {
180164
await DBSubscriptionCacheHandlers.deleteAll()
181165
commit('clearCaches')

src/renderer/store/modules/utils.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ const state = {
5252
externalPlayerNames: [],
5353
externalPlayerValues: [],
5454
externalPlayerCmdArguments: {},
55-
lastVideoRefreshTimestampByProfile: {},
56-
lastShortRefreshTimestampByProfile: {},
57-
lastLiveRefreshTimestampByProfile: {},
58-
lastCommunityRefreshTimestampByProfile: {},
5955
lastPopularRefreshTimestamp: '',
6056
lastTrendingRefreshTimestamp: '',
6157
subscriptionFirstAutoFetchRunData: {
@@ -75,10 +71,6 @@ const getters = {
7571
return state.outlinesHidden
7672
},
7773

78-
getCurrentVolume(state) {
79-
return state.currentVolume
80-
},
81-
8274
getSessionSearchHistory(state) {
8375
return state.sessionSearchHistory
8476
},

0 commit comments

Comments
 (0)