From 9c966a087fa5bf5e8f9a264234f4e4dfecbd6768 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Fri, 30 Nov 2018 11:15:22 +0100 Subject: Remove fxAccountsEnabled() --- services/sync/Weave.js | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'services/sync/Weave.js') 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 @@ -92,29 +92,6 @@ WeaveService.prototype = { return deferred.promise; }, - /** - * 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. * -- cgit v1.2.3