diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-11-30 11:15:22 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-11-30 11:15:22 +0100 |
commit | 9c966a087fa5bf5e8f9a264234f4e4dfecbd6768 (patch) | |
tree | 83f1012aaabbc80eeda5826f70f482c92739108f /services/sync/Weave.js | |
parent | c11450651f60b3d4f85ed897a646287b2f9b8db9 (diff) | |
download | UXP-9c966a087fa5bf5e8f9a264234f4e4dfecbd6768.tar UXP-9c966a087fa5bf5e8f9a264234f4e4dfecbd6768.tar.gz UXP-9c966a087fa5bf5e8f9a264234f4e4dfecbd6768.tar.lz UXP-9c966a087fa5bf5e8f9a264234f4e4dfecbd6768.tar.xz UXP-9c966a087fa5bf5e8f9a264234f4e4dfecbd6768.zip |
Remove fxAccountsEnabled()
Diffstat (limited to 'services/sync/Weave.js')
-rw-r--r-- | services/sync/Weave.js | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/services/sync/Weave.js b/services/sync/Weave.js index ff97c2edd..5bafa07ad 100644 --- a/services/sync/Weave.js +++ b/services/sync/Weave.js @@ -93,29 +93,6 @@ WeaveService.prototype = { }, /** - * Whether Firefox Accounts is enabled. - * - * @return bool - * - * This function is currently always returning false because we don't support - * the use of FxA/Sync-1.5 but do want to keep the code "just in case". - */ - get fxAccountsEnabled() { - // Early exit: FxA not supported. - return false; -/* -- commented out to prevent unreachable code warning -- - try { - // Old sync guarantees '@' will never appear in the username while FxA - // uses the FxA email address - so '@' is the flag we use. - let username = Services.prefs.getCharPref(SYNC_PREFS_BRANCH + "username"); - return !username || username.includes('@'); - } catch (_) { - return true; // No username == only allow FxA to be configured. - } -*/ - }, - - /** * Whether Sync appears to be enabled. * * This returns true if all the Sync preferences for storing account |