From 2aadb460b985884468770af250fcb4083c005835 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 8 Apr 2021 13:20:56 +0200 Subject: [PATCH] Remove some XXX --- www/admin/inner.js | 2 -- www/common/application_config_internal.js | 2 -- www/common/outer/async-store.js | 3 --- www/common/outer/mailbox-handlers.js | 1 - 4 files changed, 8 deletions(-) diff --git a/www/admin/inner.js b/www/admin/inner.js index acf7e084f..beafdf0b1 100644 --- a/www/admin/inner.js +++ b/www/admin/inner.js @@ -970,7 +970,6 @@ define([ var getApi = function (cb) { return function () { require(['/api/broadcast?'+ (+new Date())], function (Broadcast) { - // XXX require.s.contexts._ can be used to erase old loaded objects cb(Broadcast); setTimeout(function () { try { @@ -978,7 +977,6 @@ define([ var defined = ctx.defined; Object.keys(defined).forEach(function (href) { if (/^\/api\/broadcast\?[0-9]{13}/.test(href)) { - console.error(href); delete defined[href]; return; } diff --git a/www/common/application_config_internal.js b/www/common/application_config_internal.js index 4ac3554cd..7c6ea59bb 100644 --- a/www/common/application_config_internal.js +++ b/www/common/application_config_internal.js @@ -162,8 +162,6 @@ define(function() { // making it much faster to open new tabs. config.disableWorkers = false; - //config.surveyURL = ""; // XXX remove this? - // Teams are always loaded during the initial loading screen (for the first tab only if // SharedWorkers are available). Allowing users to be members of multiple teams can // make them have a very slow loading time. To avoid impacting the user experience diff --git a/www/common/outer/async-store.js b/www/common/outer/async-store.js index a586f26dc..8a892e2f1 100644 --- a/www/common/outer/async-store.js +++ b/www/common/outer/async-store.js @@ -3169,9 +3169,6 @@ define([ }); }; - Store.newVersionReload = function () { // XXX not used anymore? - broadcast([], "NETWORK_RECONNECT"); - }; Store.disconnect = function () { if (self.accountDeletion) { return; } if (!store.network) { return; } diff --git a/www/common/outer/mailbox-handlers.js b/www/common/outer/mailbox-handlers.js index 7db5a3119..7f7e20d2a 100644 --- a/www/common/outer/mailbox-handlers.js +++ b/www/common/outer/mailbox-handlers.js @@ -687,7 +687,6 @@ define([ // Broadcast - //var broadcasts = {}; // XXX defined but never used ? handlers['BROADCAST_MAINTENANCE'] = function (ctx, box, data, cb) { var msg = data.msg; var uid = msg.uid;