Bug 1198071 - remove support for session_status server commands. r=rfkelly,zaach

This commit is contained in:
Mark Hammond 2015-08-28 10:47:01 +10:00
parent 4d5772376d
commit f2cdca103c

View File

@ -257,22 +257,6 @@ let wrapper = {
this.injectData("message", { status: "can_link_account", data: { ok: ok } });
},
/**
* onSessionStatus sends the currently signed in user's credentials
* to the jelly.
*/
onSessionStatus: function () {
log("Received: 'session_status'.");
fxAccounts.getSignedInUser().then(
(accountData) => {
updateDisplayedEmail(accountData);
this.injectData("message", { status: "session_status", data: accountData });
},
(err) => this.injectData("message", { status: "error", error: err })
);
},
/**
* onSignOut handler erases the current user's session from the fxaccounts service
*/
@ -296,9 +280,6 @@ let wrapper = {
case "can_link_account":
this.onCanLinkAccount(data);
break;
case "session_status":
this.onSessionStatus(data);
break;
case "sign_out":
this.onSignOut(data);
break;