From 9aa6a338a00c683849e3c211787f345d4006f2e5 Mon Sep 17 00:00:00 2001 From: Roman Cervantes Date: Mon, 25 Nov 2019 22:47:22 -0700 Subject: [PATCH] Remove obsolete code referencing brandingEnabled --- src/components/GameBoard/GameBoardPlaceholder.vue | 7 ------- src/components/Lists/List.vue | 2 -- src/platforms.js | 3 --- src/store/getters.js | 7 ------- 4 files changed, 19 deletions(-) diff --git a/src/components/GameBoard/GameBoardPlaceholder.vue b/src/components/GameBoard/GameBoardPlaceholder.vue index d06625f0..c11718bf 100644 --- a/src/components/GameBoard/GameBoardPlaceholder.vue +++ b/src/components/GameBoard/GameBoardPlaceholder.vue @@ -33,19 +33,12 @@ export default { computed: { ...mapState(['gameLists', 'platform']), - ...mapGetters(['brandingEnabled']), lists() { return this.gameLists && this.platform && this.gameLists[this.platform.code] ? this.gameLists[this.platform.code] : []; }, - - style() { - return this.brandingEnabled - ? `background-color: ${this.platform.hex}; opacity: 0.8;` - : null; - }, }, methods: { diff --git a/src/components/Lists/List.vue b/src/components/Lists/List.vue index df0a4b84..5e5ac086 100644 --- a/src/components/Lists/List.vue +++ b/src/components/Lists/List.vue @@ -113,8 +113,6 @@ export default { computed: { ...mapState(['user', 'gameLists', 'platform', 'settings', 'games']), - ...mapGetters(['brandingEnabled']), - autoSortEnabled() { const list = this.list[this.listIndex]; diff --git a/src/platforms.js b/src/platforms.js index 0afa767c..467ce895 100755 --- a/src/platforms.js +++ b/src/platforms.js @@ -6,21 +6,18 @@ export default [ code: 'nintendo-switch', hex: '#ce181e', id: 130, - brandingEnabled: true, }, { name: 'PlayStation 4', code: 'ps4', hex: '#2e6db4', id: 48, - brandingEnabled: true, }, { name: 'Xbox One', code: 'xbox-one', id: 49, hex: '#177d3e', - brandingEnabled: true, }, { name: 'PlayStation Vita', diff --git a/src/store/getters.js b/src/store/getters.js index 5dfb5df2..5adc14a9 100755 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -91,12 +91,5 @@ export default { // eslint-disable-next-line activeList: ({ gameLists, platform, activeListIndex }) => gameLists[platform.code][activeListIndex], - brandingEnabled: ({ settings, platform }) => { - const brandingEnabled = settings && settings.branding; - const brandingAvailble = platform && platform.brandingEnabled && Boolean(platform.hex); - - return Boolean(brandingEnabled && brandingAvailble); - }, - hasTags: state => Object.keys(state.tags) && Object.keys(state.tags).length > 0, };