removed unused code

This commit is contained in:
Miodec 2021-07-12 23:42:47 +01:00
parent 77e819067e
commit 4d816ec7eb

View file

@ -397,22 +397,6 @@ list.unlinkDiscord = new SimplePopup(
DB.getSnapshot().discordId = undefined;
Settings.updateDiscordSection();
}
//todo rewrite to axios
// CloudFunctions.unlinkDiscord({
// uid: firebase.auth().currentUser.uid,
// }).then((ret) => {
// Loader.hide();
// console.log(ret);
// if (ret.data.status === 1) {
// DB.getSnapshot().discordId = null;
// Notifications.add("Accounts unlinked", 0);
// Settings.updateDiscordSection();
// } else {
// Notifications.add("Something went wrong: " + ret.data.message, -1);
// Settings.updateDiscordSection();
// }
// });
},
() => {}
);