From c8f3f0266c927b50f82c90392b88d0892c653fb7 Mon Sep 17 00:00:00 2001 From: Ian Neal Date: Wed, 30 Oct 2019 19:04:41 +0100 Subject: [PATCH] Bug 1589891 - Remove unused code from commandglue.js. r=frg --- suite/mailnews/content/commandglue.js | 29 --------------------------- 1 file changed, 29 deletions(-) diff --git a/suite/mailnews/content/commandglue.js b/suite/mailnews/content/commandglue.js index 78cc0b7c60..ae4041ab93 100644 --- a/suite/mailnews/content/commandglue.js +++ b/suite/mailnews/content/commandglue.js @@ -23,12 +23,6 @@ var gPrevFolderFlags; var gPrevSelectedFolder; var gMsgFolderSelected; -function OpenURL(url) -{ - messenger.setWindow(window, msgWindow); - messenger.openURL(url); -} - function GetMsgFolderFromResource(folderResource) { if (!folderResource) @@ -54,29 +48,6 @@ function GetServer(uri) 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 || "";