Remove some XXX

pull/1/head
yflory 4 years ago
parent c43c1a447d
commit 2aadb460b9

@ -970,7 +970,6 @@ define([
var getApi = function (cb) { var getApi = function (cb) {
return function () { return function () {
require(['/api/broadcast?'+ (+new Date())], function (Broadcast) { require(['/api/broadcast?'+ (+new Date())], function (Broadcast) {
// XXX require.s.contexts._ can be used to erase old loaded objects
cb(Broadcast); cb(Broadcast);
setTimeout(function () { setTimeout(function () {
try { try {
@ -978,7 +977,6 @@ define([
var defined = ctx.defined; var defined = ctx.defined;
Object.keys(defined).forEach(function (href) { Object.keys(defined).forEach(function (href) {
if (/^\/api\/broadcast\?[0-9]{13}/.test(href)) { if (/^\/api\/broadcast\?[0-9]{13}/.test(href)) {
console.error(href);
delete defined[href]; delete defined[href];
return; return;
} }

@ -162,8 +162,6 @@ define(function() {
// making it much faster to open new tabs. // making it much faster to open new tabs.
config.disableWorkers = false; config.disableWorkers = false;
//config.surveyURL = ""; // XXX remove this?
// Teams are always loaded during the initial loading screen (for the first tab only if // 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 // 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 // make them have a very slow loading time. To avoid impacting the user experience

@ -3169,9 +3169,6 @@ define([
}); });
}; };
Store.newVersionReload = function () { // XXX not used anymore?
broadcast([], "NETWORK_RECONNECT");
};
Store.disconnect = function () { Store.disconnect = function () {
if (self.accountDeletion) { return; } if (self.accountDeletion) { return; }
if (!store.network) { return; } if (!store.network) { return; }

@ -687,7 +687,6 @@ define([
// Broadcast // Broadcast
//var broadcasts = {}; // XXX defined but never used ?
handlers['BROADCAST_MAINTENANCE'] = function (ctx, box, data, cb) { handlers['BROADCAST_MAINTENANCE'] = function (ctx, box, data, cb) {
var msg = data.msg; var msg = data.msg;
var uid = msg.uid; var uid = msg.uid;

Loading…
Cancel
Save