Remove obsolete code referencing brandingEnabled

This commit is contained in:
Roman Cervantes 2019-11-25 22:47:22 -07:00
parent 52ab156f2e
commit 9aa6a338a0
4 changed files with 0 additions and 19 deletions

View file

@ -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: {

View file

@ -113,8 +113,6 @@ export default {
computed: {
...mapState(['user', 'gameLists', 'platform', 'settings', 'games']),
...mapGetters(['brandingEnabled']),
autoSortEnabled() {
const list = this.list[this.listIndex];

View file

@ -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',

View file

@ -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,
};