Removing NS_NewParserNode method

This commit is contained in:
spider%netscape.com 1998-07-30 23:14:18 +00:00
parent 5d01dfa7f3
commit a7fa413b4a
4 changed files with 2 additions and 48 deletions

View File

@ -139,10 +139,6 @@ class nsIParserNode : public nsISupports {
};
extern NS_HTMLPARS nsresult NS_NewParserNode(nsIParserNode** aInstancePtrResult,
CToken* aToken,
PRInt32 aLineNumber);
#endif

View File

@ -26,26 +26,7 @@ const nsAutoString nsCParserNode::mEmptyString("");
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_IID(kClassIID, NS_PARSER_NODE_IID);
static NS_DEFINE_IID(kIParserNodeIID, NS_IPARSER_NODE_IID);
/**
* This method is defined in nsIParser. It is used to
* cause the COM-like construction of an nsParser.
*
* @update gess 3/25/98
* @param nsIParser** ptr to newly instantiated parser
* @return NS_xxx error result
*/
NS_HTMLPARS nsresult NS_NewParserNode(nsIParserNode** aInstancePtrResult,CToken* aToken,PRInt32 aLineNumber)
{
nsCParserNode *it = new nsCParserNode(aToken,aLineNumber);
if (it == 0) {
return NS_ERROR_OUT_OF_MEMORY;
}
return it->QueryInterface(kIParserNodeIID, (void **) aInstancePtrResult);
}
static NS_DEFINE_IID(kIParserNodeIID, NS_IPARSER_NODE_IID);
/**
* Default constructor

View File

@ -139,10 +139,6 @@ class nsIParserNode : public nsISupports {
};
extern NS_HTMLPARS nsresult NS_NewParserNode(nsIParserNode** aInstancePtrResult,
CToken* aToken,
PRInt32 aLineNumber);
#endif

View File

@ -26,26 +26,7 @@ const nsAutoString nsCParserNode::mEmptyString("");
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_IID(kClassIID, NS_PARSER_NODE_IID);
static NS_DEFINE_IID(kIParserNodeIID, NS_IPARSER_NODE_IID);
/**
* This method is defined in nsIParser. It is used to
* cause the COM-like construction of an nsParser.
*
* @update gess 3/25/98
* @param nsIParser** ptr to newly instantiated parser
* @return NS_xxx error result
*/
NS_HTMLPARS nsresult NS_NewParserNode(nsIParserNode** aInstancePtrResult,CToken* aToken,PRInt32 aLineNumber)
{
nsCParserNode *it = new nsCParserNode(aToken,aLineNumber);
if (it == 0) {
return NS_ERROR_OUT_OF_MEMORY;
}
return it->QueryInterface(kIParserNodeIID, (void **) aInstancePtrResult);
}
static NS_DEFINE_IID(kIParserNodeIID, NS_IPARSER_NODE_IID);
/**
* Default constructor