Skip to content

Commit

Permalink
chore: Remove useless getters in main store
Browse files Browse the repository at this point in the history
Signed-off-by: Grigory V <[email protected]>
  • Loading branch information
GVodyanov committed Sep 16, 2024
1 parent 2f34aa3 commit 8af1477
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/store/mainStore/getters.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ export default function mainStoreGetters() {
getPreference: (state) => (key, def) => {
return defaultTo(def, state.preferences[key])
},
isExpiredSession: (state) => {
return state.isExpiredSession
},
getAccount: (state) => (id) => {
return state.accounts[id]
},
Expand Down Expand Up @@ -49,21 +46,12 @@ export default function mainStoreGetters() {
.filter((mailbox) => mailbox.specialRole === specialRole),
)
},
showMessageComposer: (state) => {
return state.showMessageComposer
},
composerMessage: (state) => {
return state.newMessage
},
composerMessageOptions: (state) => {
return state.newMessage?.options
},
composerMessageIsSaved: (state) => {
return state.composerMessageIsSaved
},
composerSessionId: (state) => {
return state.composerSessionId
},
getEnvelope: (state) => (id) => {
return state.envelopes[id]
},
Expand Down Expand Up @@ -109,11 +97,6 @@ export default function mainStoreGetters() {
.some((tag) => tag.imapLabel === FOLLOW_UP_TAG_LABEL),
)
},
isScheduledSendingDisabled: (state) => state.isScheduledSendingDisabled,
isSnoozeDisabled: (state) => state.isSnoozeDisabled,
googleOauthUrl: (state) => state.googleOauthUrl,
masterPasswordEnabled: (state) => state.masterPasswordEnabled,
microsoftOauthUrl: (state) => state.microsoftOauthUrl,
getActiveSieveScript: (state) => (accountId) => state.sieveScript[accountId],
getCurrentUserPrincipal: (state) => state.currentUserPrincipal,
getCurrentUserPrincipalEmail: (state) => state.currentUserPrincipal?.email,
Expand Down

0 comments on commit 8af1477

Please sign in to comment.