From 5636b5f81d04a96ccfb61ab3fc7182bac954124a Mon Sep 17 00:00:00 2001 From: Gamebrary Date: Tue, 13 Oct 2020 17:35:52 -0700 Subject: [PATCH] remove dead code --- src/pages/Auth.vue | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/pages/Auth.vue b/src/pages/Auth.vue index 3266146a..755f5817 100644 --- a/src/pages/Auth.vue +++ b/src/pages/Auth.vue @@ -48,7 +48,6 @@ export default { this.$store.commit('SET_USER', user); this.loadSettings(); this.loadTags(); - this.loadLists(); this.load(); 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() { const firebaseAuthProvider = new firebase.auth.GoogleAuthProvider(); @@ -127,16 +112,6 @@ export default { this.loadWallpapers(); // 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 db.collection('settings').doc(this.user.uid) .onSnapshot((doc) => {