From 5b80d6c44e75cebdfb15ac3ca4cda6738432c83d Mon Sep 17 00:00:00 2001 From: Geoff Lankow Date: Wed, 6 Sep 2023 04:53:23 +0000 Subject: [PATCH] Bug 1851535 - Remove folderPane.getFolderFromUri. r=aleca This is unused. And a bit weird. Differential Revision: https://phabricator.services.mozilla.com/D187527 --HG-- extra : moz-landing-system : lando --- mail/base/content/about3Pane.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/mail/base/content/about3Pane.js b/mail/base/content/about3Pane.js index 8dd2880695..c8cc04dfa9 100644 --- a/mail/base/content/about3Pane.js +++ b/mail/base/content/about3Pane.js @@ -2268,22 +2268,6 @@ var folderPane = { } }, - /** - * Get the folder from the URI by looping through the list of folders and - * finding a matching URI. - * - * @param {string} uri - * @returns {?FolderTreeRow} - */ - getFolderFromUri(uri) { - for (let folder of folderTree.querySelectorAll("li")) { - if (folder.uri == uri) { - return folder; - } - } - return [...folderTree.querySelectorAll("li")]?.find(f => f.uri == uri); - }, - /** * Called when a folder's new messages state changes. *