Bug 1589891 - Remove unused code from commandglue.js. r=frg a=frg
authorIan Neal <iann_cvs@blueyonder.co.uk>
Wed, 30 Oct 2019 19:43:10 +0100
changeset 32354 4f5c19b9a6b76266eb891548abc10f38d491bcf9
parent 32353 cb1d1717becead23a0ed83c5502a3f877edb06ef
child 32355 56b6d1b50647143c25efe642b37b02f65f9c4343
push id225
push userfrgrahl@gmx.net
push dateWed, 30 Oct 2019 18:44:45 +0000
treeherdercomm-esr60@4f5c19b9a6b7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfrg, frg
bugs1589891
Bug 1589891 - Remove unused code from commandglue.js. r=frg a=frg
suite/mailnews/content/commandglue.js
--- a/suite/mailnews/content/commandglue.js
+++ b/suite/mailnews/content/commandglue.js
@@ -18,22 +18,16 @@ var gFolderJustSwitched = false;
 var gBeforeFolderLoadTime;
 var gVirtualFolderTerms;
 var gXFVirtualFolderTerms;
 var gCurrentVirtualFolderUri;
 var gPrevFolderFlags;
 var gPrevSelectedFolder;
 var gMsgFolderSelected;
 
-function OpenURL(url)
-{
-  messenger.setWindow(window, msgWindow);
-  messenger.openURL(url);
-}
-
 function GetMsgFolderFromResource(folderResource)
 {
   if (!folderResource)
      return null;
 
   var msgFolder = folderResource.QueryInterface(Ci.nsIMsgFolder);
   if (msgFolder && (msgFolder.parent || msgFolder.isServer))
     return msgFolder;
@@ -49,39 +43,16 @@ function GetServer(uri)
         return folder.server;
     }
     catch (ex) {
         dump("GetServer("+uri+") failed, ex="+ex+"\n");
     }
     return null;
 }
 
-function LoadMessageByUri(uri)
-{
-  //dump("XXX LoadMessageByUri " + uri + " vs " + gCurrentDisplayedMessage + "\n");
-  if(uri != gCurrentDisplayedMessage)
-  {
-        dump("fix this, get the nsIMsgDBHdr and the nsIMsgFolder from the uri...\n");
-/*
-    var resource = RDF.GetResource(uri);
-    var message = resource.QueryInterface(Ci.nsIMessage);
-    if (message)
-      setTitleFromFolder(message.msgFolder, message.mimef2DecodedSubject);
-
-    if (message.msgFolder.server.downloadOnBiff)
-      message.msgFolder.biffState = Ci.nsIMsgFolder.nsMsgBiffState_NoMail;
-*/
-
-    gCurrentDisplayedMessage = uri;
-    gHaveLoadedMessage = true;
-    OpenURL(uri);
-  }
-
-}
-
 function setTitleFromFolder(msgfolder, subject)
 {
     var title = subject || "";
 
     if (msgfolder)
     {
       if (title)
         title += " - ";