Skip to content

Commit

Permalink
remove(preferences.ts): unused carbon offset
Browse files Browse the repository at this point in the history
  • Loading branch information
hassnian committed Jun 27, 2024
1 parent 45a4ff5 commit 2e69bc3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
6 changes: 0 additions & 6 deletions stores/preferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ interface State {
firstTimeAutoTeleport: boolean
// Minting
hasSupport: boolean
hasCarbonOffset: boolean
userLocale: string
newsletterSubscription: NewsletterSubscription
partyMode: boolean | undefined
Expand Down Expand Up @@ -97,7 +96,6 @@ export const usePreferencesStore = defineStore('preferences', {
historyItemsPerPage: 12,
replaceBuyNowWithYolo: false,
hasSupport: true,
hasCarbonOffset: false,
gridSize: 'small',
firstTimeAutoTeleport: true,
userLocale: 'en',
Expand All @@ -123,7 +121,6 @@ export const usePreferencesStore = defineStore('preferences', {
getHistoryItemsPerPage: (state) => state.historyItemsPerPage,
getReplaceBuyNowWithYolo: (state) => state.replaceBuyNowWithYolo,
getHasSupport: (state) => state.hasSupport,
getHasCarbonOffset: (state) => state.hasCarbonOffset,
getFirstTimeAutoTeleport: (state) => state.firstTimeAutoTeleport,
getUserLocale: (state) => state.userLocale,
getNewsletterSubscription: (state) => state.newsletterSubscription,
Expand Down Expand Up @@ -200,9 +197,6 @@ export const usePreferencesStore = defineStore('preferences', {
setHasSupport(payload) {
this.hasSupport = payload
},
setHasCarbonOffset(payload) {
this.hasCarbonOffset = payload
},
setGridSize(payload) {
this.gridSize = payload
},
Expand Down
8 changes: 0 additions & 8 deletions utils/mintUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ export function nsfwAttribute(nsfw: boolean): Attribute[] {
return [{ trait_type: 'NSFW', value: Number(nsfw) }]
}

export function offsetAttribute(hasCarbonOffset: boolean): Attribute[] {
if (!hasCarbonOffset) {
return []
}

return [{ trait_type: 'KodaForest', value: 'Carbonless' }]
}

export function secondaryFileVisible(file?: Blob): boolean {
const fileType = resolveMedia(file?.type)
return isFileWithoutType(file, fileType) || isSecondFileVisible(fileType)
Expand Down

0 comments on commit 2e69bc3

Please sign in to comment.