Skip to content

Commit

Permalink
Bug 1749935 - Remove empty nsIContentSink::WillBuildModel/DidBuildMod…
Browse files Browse the repository at this point in the history
…el implementations. r=hsivonen

Differential Revision: https://phabricator.services.mozilla.com/D135845
  • Loading branch information
petervanderbeken committed Feb 14, 2022
1 parent f7e0158 commit 39ce6f4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
2 changes: 0 additions & 2 deletions dom/prototype/PrototypeDocumentContentSink.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ class PrototypeDocumentContentSink final : public nsIStreamLoaderObserver,

// nsIContentSink
NS_IMETHOD WillParse(void) override { return NS_OK; };
NS_IMETHOD WillBuildModel(nsDTDMode aDTDMode) override { return NS_OK; };
NS_IMETHOD DidBuildModel(bool aTerminated) override { return NS_OK; };
NS_IMETHOD WillInterrupt(void) override { return NS_OK; };
void WillResume() override{};
NS_IMETHOD SetParser(nsParserBase* aParser) override;
Expand Down
13 changes: 0 additions & 13 deletions dom/xul/nsXULContentSink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,19 +169,6 @@ NS_IMPL_CYCLE_COLLECTING_RELEASE(XULContentSinkImpl)
//----------------------------------------------------------------------
// nsIContentSink interface

NS_IMETHODIMP
XULContentSinkImpl::WillBuildModel(nsDTDMode aDTDMode) {
#if FIXME
if (!mParentContentSink) {
// If we're _not_ an overlay, then notify the document that
// the load is beginning.
mDocument->BeginLoad();
}
#endif

return NS_OK;
}

NS_IMETHODIMP
XULContentSinkImpl::DidBuildModel(bool aTerminated) {
nsCOMPtr<Document> doc = do_QueryReferent(mDocument);
Expand Down
1 change: 0 additions & 1 deletion dom/xul/nsXULContentSink.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ class XULContentSinkImpl final : public nsIXMLContentSink, public nsIExpatSink {

// nsIContentSink
NS_IMETHOD WillParse(void) override { return NS_OK; }
NS_IMETHOD WillBuildModel(nsDTDMode aDTDMode) override;
NS_IMETHOD DidBuildModel(bool aTerminated) override;
NS_IMETHOD WillInterrupt(void) override;
void WillResume() override;
Expand Down

0 comments on commit 39ce6f4

Please sign in to comment.