From 4869336efdc8cc5916b60303b95c58112dfc81d1 Mon Sep 17 00:00:00 2001 From: "mscott%netscape.com" Date: Mon, 8 Mar 1999 01:00:52 +0000 Subject: [PATCH] Remove NS_NewMsgParser. You should be going through the repository to create an instance of mailbox parser. I've already updated the nsLocalMsgFactory to be able to create instances of this object. --- mailnews/local/src/nsParseMailbox.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/mailnews/local/src/nsParseMailbox.cpp b/mailnews/local/src/nsParseMailbox.cpp index 18d22e26407..5f121bf62f1 100644 --- a/mailnews/local/src/nsParseMailbox.cpp +++ b/mailnews/local/src/nsParseMailbox.cpp @@ -32,24 +32,6 @@ NS_IMPL_ADDREF(nsMsgMailboxParser) NS_IMPL_RELEASE(nsMsgMailboxParser) NS_IMPL_QUERY_INTERFACE(nsMsgMailboxParser, nsIStreamListener::GetIID()); /* we need to pass in the interface ID of this interface */ -NS_BEGIN_EXTERN_C - -nsresult NS_NewMsgParser(nsIStreamListener ** aInstancePtr) -{ - nsresult rv = NS_OK; - if (aInstancePtr) - { - nsMsgMailboxParser * parser = new nsMsgMailboxParser(); - if (parser) - rv =parser->QueryInterface(nsIStreamListener::GetIID(), (void **) aInstancePtr); - } - - return rv; -} - -NS_END_EXTERN_C - - // Whenever data arrives from the connection, core netlib notifices the protocol by calling // OnDataAvailable. We then read and process the incoming data from the input stream. NS_IMETHODIMP nsMsgMailboxParser::OnDataAvailable(nsIURL* aURL, nsIInputStream *aIStream, PRUint32 aLength)