mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-14 00:14:33 +00:00
stop creating nsIMessenger objects
This commit is contained in:
parent
2d974a158b
commit
d1323c7142
@ -27,9 +27,6 @@
|
||||
#include "nsCRT.h"
|
||||
#include "nsCOMPtr.h"
|
||||
|
||||
#include "nsIMessenger.h"
|
||||
#include "nsMessenger.h"
|
||||
|
||||
#include "nsMsgGroupRecord.h"
|
||||
|
||||
#include "nsMsgAppCore.h"
|
||||
@ -57,7 +54,6 @@ static NS_DEFINE_CID(kCMsgMailSessionCID, NS_MSGMAILSESSION_CID);
|
||||
|
||||
static NS_DEFINE_CID(kCUrlListenerManagerCID, NS_URLLISTENERMANAGER_CID);
|
||||
|
||||
static NS_DEFINE_CID(kCMessengerCID, NS_MESSENGER_CID);
|
||||
static NS_DEFINE_CID(kCMessengerBootstrapCID, NS_MESSENGERBOOTSTRAP_CID);
|
||||
|
||||
static NS_DEFINE_CID(kCMsgFolderEventCID, NS_MSGFOLDEREVENT_CID);
|
||||
@ -179,10 +175,6 @@ nsMsgFactory::CreateInstance(nsISupports *aOuter,
|
||||
{
|
||||
return NS_NewMessengerBootstrap(aIID, aResult);
|
||||
}
|
||||
else if (mClassID.Equals(kCMessengerCID))
|
||||
{
|
||||
return NS_NewMessenger(aIID, aResult);
|
||||
}
|
||||
else if (mClassID.Equals(kCUrlListenerManagerCID))
|
||||
{
|
||||
nsUrlListenerManager * listener = nsnull;
|
||||
@ -337,12 +329,6 @@ NSRegisterSelf(nsISupports* aServMgr, const char* path)
|
||||
path, PR_TRUE, PR_TRUE);
|
||||
if (NS_FAILED(rv)) goto done;
|
||||
|
||||
rv = compMgr->RegisterComponent(kCMessengerCID,
|
||||
"Netscape Messenger",
|
||||
"component://netscape/messenger/application",
|
||||
path, PR_TRUE, PR_TRUE);
|
||||
if (NS_FAILED(rv)) goto done;
|
||||
|
||||
rv = compMgr->RegisterComponent(kCMessengerBootstrapCID,
|
||||
"Netscape Messenger Bootstrapper",
|
||||
"component://netscape/messenger",
|
||||
@ -460,8 +446,6 @@ NSUnregisterSelf(nsISupports* aServMgr, const char* path)
|
||||
|
||||
rv = compMgr->UnregisterComponent(kCUrlListenerManagerCID, path);
|
||||
if (NS_FAILED(rv)) goto done;
|
||||
rv = compMgr->UnregisterComponent(kCMessengerCID, path);
|
||||
if (NS_FAILED(rv)) goto done;
|
||||
rv = compMgr->UnregisterComponent(kCMessengerBootstrapCID, path);
|
||||
if (NS_FAILED(rv)) goto done;
|
||||
#if 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user