From c1418b7281718efbf436dcfc2b2983d3278c64a8 Mon Sep 17 00:00:00 2001 From: "hpradhan%hotpop.com" Date: Tue, 11 Mar 2003 04:38:07 +0000 Subject: [PATCH] bug 196662 : remove some obsolete code in nsHTMLFragmentContentSink r=harishd sr=jst git-svn-id: svn://10.0.0.236/trunk@139256 18797224-902f-48f8-a5cc-f745e15eee43 --- .../src/nsHTMLFragmentContentSink.cpp | 34 +++++-------------- 1 file changed, 9 insertions(+), 25 deletions(-) diff --git a/mozilla/content/html/document/src/nsHTMLFragmentContentSink.cpp b/mozilla/content/html/document/src/nsHTMLFragmentContentSink.cpp index 5addceb5217..ce80d0e64c4 100644 --- a/mozilla/content/html/document/src/nsHTMLFragmentContentSink.cpp +++ b/mozilla/content/html/document/src/nsHTMLFragmentContentSink.cpp @@ -81,13 +81,8 @@ public: NS_IMETHOD WillInterrupt(void); NS_IMETHOD WillResume(void); NS_IMETHOD SetParser(nsIParser* aParser); - NS_IMETHOD OpenContainer(const nsIParserNode& aNode); - NS_IMETHOD CloseContainer(const nsHTMLTag aTag); - NS_IMETHOD AddHeadContent(const nsIParserNode& aNode); - NS_IMETHOD AddLeaf(const nsIParserNode& aNode); - NS_IMETHOD AddComment(const nsIParserNode& aNode); - NS_IMETHOD AddProcessingInstruction(const nsIParserNode& aNode); - NS_IMETHOD AddDocTypeDecl(const nsIParserNode& aNode); + NS_IMETHOD FlushPendingNotifications() { return NS_OK; } + NS_IMETHOD SetDocumentCharset(nsAString& aCharset) { return NS_OK; } // nsIHTMLContentSink NS_IMETHOD BeginContext(PRInt32 aID); @@ -103,22 +98,23 @@ public: NS_IMETHOD CloseForm(); NS_IMETHOD OpenFrameset(const nsIParserNode& aNode); NS_IMETHOD CloseFrameset(); - NS_IMETHOD OpenNoscript(const nsIParserNode& aNode); - NS_IMETHOD CloseNoscript(); NS_IMETHOD IsEnabled(PRInt32 aTag, PRBool* aReturn) { return NS_OK; } NS_IMETHOD_(PRBool) IsFormOnStack() { return PR_FALSE; } - NS_IMETHOD OpenMap(const nsIParserNode& aNode); NS_IMETHOD CloseMap(); - NS_IMETHOD FlushPendingNotifications() { return NS_OK; } - NS_IMETHOD SetDocumentCharset(nsAString& aCharset) { return NS_OK; } NS_IMETHOD WillProcessTokens(void) { return NS_OK; } NS_IMETHOD DidProcessTokens(void) { return NS_OK; } NS_IMETHOD WillProcessAToken(void) { return NS_OK; } NS_IMETHOD DidProcessAToken(void) { return NS_OK; } NS_IMETHOD NotifyTagObservers(nsIParserNode* aNode) { return NS_OK; } - NS_IMETHOD DoFragment(PRBool aFlag); + NS_IMETHOD OpenContainer(const nsIParserNode& aNode); + NS_IMETHOD CloseContainer(const nsHTMLTag aTag); + NS_IMETHOD AddHeadContent(const nsIParserNode& aNode); + NS_IMETHOD AddLeaf(const nsIParserNode& aNode); + NS_IMETHOD AddComment(const nsIParserNode& aNode); + NS_IMETHOD AddProcessingInstruction(const nsIParserNode& aNode); + NS_IMETHOD AddDocTypeDecl(const nsIParserNode& aNode); // nsIHTMLFragmentContentSink NS_IMETHOD GetFragment(nsIDOMDocumentFragment** aFragment); @@ -458,18 +454,6 @@ nsHTMLFragmentContentSink::CloseMap() return CloseContainer(eHTMLTag_map); } -NS_IMETHODIMP -nsHTMLFragmentContentSink::OpenNoscript(const nsIParserNode& aNode) -{ - return OpenContainer(aNode); -} - -NS_IMETHODIMP -nsHTMLFragmentContentSink::CloseNoscript() -{ - return CloseContainer(eHTMLTag_noscript); -} - void nsHTMLFragmentContentSink::ProcessBaseTag(nsIHTMLContent* aContent) {