mirror of
https://github.com/romancm/gamebrary
synced 2024-12-18 15:23:14 +00:00
remove dead code
This commit is contained in:
parent
fde04d9beb
commit
5636b5f81d
1 changed files with 0 additions and 25 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue