mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-21 15:56:24 +08:00
removed unused code
This commit is contained in:
parent
77e819067e
commit
4d816ec7eb
|
@ -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();
|
||||
// }
|
||||
// });
|
||||
},
|
||||
() => {}
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue