remove dead code

This commit is contained in:
Gamebrary 2020-10-13 17:35:52 -07:00
parent fde04d9beb
commit 5636b5f81d

View file

@ -48,7 +48,6 @@ export default {
this.$store.commit('SET_USER', user); this.$store.commit('SET_USER', user);
this.loadSettings(); this.loadSettings();
this.loadTags(); this.loadTags();
this.loadLists();
this.load(); this.load();
this.$router.replace({ name: 'dashboard' }); this.$router.replace({ name: 'dashboard' });
}, },
@ -80,20 +79,6 @@ export default {
}); });
}, },
loadLists() {
// TODO: move to actions
db.collection('lists').doc(this.user.uid).get()
.then((doc) => {
if (doc.exists) {
const data = doc.data();
this.$store.commit('SET_GAME_LISTS_LEGACY', data);
}
})
.catch(() => {
this.$store.commit('SET_SESSION_EXPIRED', true);
});
},
handleAuthRedirect() { handleAuthRedirect() {
const firebaseAuthProvider = new firebase.auth.GoogleAuthProvider(); const firebaseAuthProvider = new firebase.auth.GoogleAuthProvider();
@ -127,16 +112,6 @@ export default {
this.loadWallpapers(); this.loadWallpapers();
// TODO: track progresses as well // TODO: track progresses as well
// TODO: move to actions
db.collection('lists').doc(this.user.uid)
.onSnapshot((doc) => {
if (doc.exists) {
const gameLists = doc.data();
this.$store.commit('SET_GAME_LISTS_LEGACY', gameLists);
}
});
// TODO: move to actions // TODO: move to actions
db.collection('settings').doc(this.user.uid) db.collection('settings').doc(this.user.uid)
.onSnapshot((doc) => { .onSnapshot((doc) => {