From 7d398710beb67e03bf1690f73cdfd1ef2b76d31a Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Mon, 10 Dec 2018 12:28:06 +0100 Subject: Remove non-functional removal summary from quota dialog. --- application/basilisk/base/content/sync/quota.js | 32 ------------------------- 1 file changed, 32 deletions(-) (limited to 'application/basilisk') diff --git a/application/basilisk/base/content/sync/quota.js b/application/basilisk/base/content/sync/quota.js index 1285a8d54..b416a44cc 100644 --- a/application/basilisk/base/content/sync/quota.js +++ b/application/basilisk/base/content/sync/quota.js @@ -174,38 +174,6 @@ var gUsageTreeView = { let collection = this._collections[row]; collection.enabled = !collection.enabled; this.treeBox.invalidateRow(row); - - // Display which ones will be removed - let freeup = 0; - let toremove = []; - for each (collection in this._collections) { - if (collection.enabled) - continue; - toremove.push(collection.name); - freeup += collection.size; - } - - let caption = document.getElementById("treeCaption"); - if (!toremove.length) { - caption.className = ""; - caption.firstChild.nodeValue = gSyncQuota.bundle.getString( - "quota.treeCaption.label"); - return; - } - - // Tycho: toremove = [this._byname[coll].title for each (coll in toremove)]; - let toremovetitles = []; - for (let coll in toremove) { - toremovetitles.push(this._byname[coll].title); - } - - toremovetitles = toremovetitles.join(gSyncQuota.bundle.getString("quota.list.separator")); - caption.firstChild.nodeValue = gSyncQuota.bundle.getFormattedString( - "quota.removal.label", [toremovetitles]); - if (freeup) - caption.firstChild.nodeValue += gSyncQuota.bundle.getFormattedString( - "quota.freeup.label", gSyncQuota.convertKB(freeup)); - caption.className = "captionWarning"; }, /* -- cgit v1.2.3