stop creating nsIMessenger objects

This commit is contained in:
alecf%netscape.com 1999-04-26 22:47:13 +00:00
parent 2d974a158b
commit d1323c7142

View File

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