fixed bug 24407 -- Remove obsoleted menu item - LoadFirstDraft; r=scottip

This commit is contained in:
jefft%netscape.com 2000-02-01 06:06:22 +00:00
Родитель 38403a45d7
Коммит b2cfa8dd0b
4 изменённых файлов: 1 добавлений и 28 удалений

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

@ -87,7 +87,6 @@ interface nsIMessenger : nsISupports {
void Undo();
void Redo();
void SendUnsentMessages();
void LoadFirstDraft();
void SetDocumentCharset(in wstring characterSet);
void saveAs(in string url, in boolean asFile, in nsIMsgIdentity identity);
void openAttachment(in string url, in string displayName, in string messageUri);

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

@ -355,7 +355,6 @@ Rights Reserved.
<menuitem value="&sendUnsentCmd.label;"
accessKey="&sendUnsentCmd.accesskey;"
oncommand="MsgSendUnsentMsg();"/>
<menuitem value="&loadFirstDraft.label;" oncommand="MsgLoadFirstDraft();"/>
<menuitem value="&emptyTrashCmd.label;" oncommand="MsgEmptyTrash();"/>
<menuitem value="&subscribeCmd.label;"
accessKey="&subscribeCmd.accesskey;"

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

@ -759,10 +759,7 @@ function MsgSendUnsentMsg()
{
messenger.SendUnsentMessages();
}
function MsgLoadFirstDraft()
{
messenger.LoadFirstDraft();
}
function MsgUpdateMsgCount() {}
function MsgRenameFolder()

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

@ -1109,28 +1109,6 @@ nsMessenger::SendUnsentMessages()
return NS_OK;
}
NS_IMETHODIMP
nsMessenger::LoadFirstDraft()
{
nsresult rv = NS_ERROR_FAILURE;
nsCOMPtr<nsIMsgDraft> pMsgDraft;
rv = nsComponentManager::CreateInstance(kMsgDraftCID, NULL, NS_GET_IID(nsIMsgDraft),
(void **)getter_AddRefs(pMsgDraft));
if (NS_SUCCEEDED(rv) && pMsgDraft)
{
#ifdef DEBUG
printf("We succesfully obtained a nsIMsgDraft interface....\n");
#endif
// This should really pass in a URI, but for now, just to test, we can pass in nsnull
rv = pMsgDraft->OpenDraftMsg(nsnull, nsnull, nsnull, PR_FALSE);
}
return rv;
}
NS_IMETHODIMP nsMessenger::DoPrint()
{
#ifdef DEBUG_MESSENGER