Bug 1589891 - Remove unused code from commandglue.js. r=frg

This commit is contained in:
Ian Neal 2019-10-30 19:04:41 +01:00
Родитель ddfb54eb3c
Коммит c8f3f0266c
1 изменённых файлов: 0 добавлений и 29 удалений

Просмотреть файл

@ -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 || "";