Bug 1597682 - Removed unused GetMsgFolderFromResource function. r=frg a=frg CLOSED TREE
authorIan Neal <iann_cvs@blueyonder.co.uk>
Sun, 24 Nov 2019 14:23:27 +0100
changeset 32380 dc3f8cba758d04fb1274a333ddc680b00ddf322f
parent 32379 24c7d081d9776547189442453a3cd831ba7815aa
child 32381 d1bf768379071baecf3f20f9bb7149f3a33724f1
push id231
push userfrgrahl@gmx.net
push dateSun, 24 Nov 2019 13:24:21 +0000
treeherdercomm-esr60@fddcb5bd203c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfrg, frg
bugs1597682
Bug 1597682 - Removed unused GetMsgFolderFromResource function. r=frg a=frg CLOSED TREE
suite/mailnews/content/commandglue.js
--- a/suite/mailnews/content/commandglue.js
+++ b/suite/mailnews/content/commandglue.js
@@ -18,28 +18,16 @@ var gFolderJustSwitched = false;
 var gBeforeFolderLoadTime;
 var gVirtualFolderTerms;
 var gXFVirtualFolderTerms;
 var gCurrentVirtualFolderUri;
 var gPrevFolderFlags;
 var gPrevSelectedFolder;
 var gMsgFolderSelected;
 
-function GetMsgFolderFromResource(folderResource)
-{
-  if (!folderResource)
-     return null;
-
-  var msgFolder = folderResource.QueryInterface(Ci.nsIMsgFolder);
-  if (msgFolder && (msgFolder.parent || msgFolder.isServer))
-    return msgFolder;
-  else
-    return null;
-}
-
 function GetServer(uri)
 {
     if (!uri) return null;
     try {
         var folder = GetMsgFolderFromUri(uri, true);
         return folder.server;
     }
     catch (ex) {