Bug 1418076 part 8. Remove remaining, unused, nsIDOMHTMLDocument methods. r=mystor.

MozReview-Commit-ID: AshWkds4I8Z
This commit is contained in:
Boris Zbarsky 2018-01-26 01:01:16 -05:00
parent 7fdae0afd0
commit 94892c7519
3 changed files with 4 additions and 36 deletions

View File

@ -1680,13 +1680,6 @@ nsHTMLDocument::Open(JSContext* cx,
return kungFuDeathGrip.forget();
}
NS_IMETHODIMP
nsHTMLDocument::Clear()
{
// This method has been deprecated
return NS_OK;
}
void
nsHTMLDocument::Close(ErrorResult& rv)
{
@ -2027,26 +2020,16 @@ nsHTMLDocument::Embeds()
return mEmbeds;
}
NS_IMETHODIMP
nsHTMLDocument::GetSelection(nsISelection** aReturn)
{
ErrorResult rv;
NS_IF_ADDREF(*aReturn = nsDocument::GetSelection(rv));
return rv.StealNSResult();
}
NS_IMETHODIMP
void
nsHTMLDocument::CaptureEvents()
{
WarnOnceAbout(nsIDocument::eUseOfCaptureEvents);
return NS_OK;
}
NS_IMETHODIMP
void
nsHTMLDocument::ReleaseEvents()
{
WarnOnceAbout(nsIDocument::eUseOfReleaseEvents);
return NS_OK;
}
// Mapped to document.embeds for NS4 compatibility

View File

@ -238,8 +238,8 @@ public:
{
// Deprecated
}
// The XPCOM CaptureEvents works fine for us.
// The XPCOM ReleaseEvents works fine for us.
void CaptureEvents();
void ReleaseEvents();
// We're picking up GetLocation from Document
already_AddRefed<mozilla::dom::Location> GetLocation() const
{

View File

@ -11,23 +11,8 @@
*
* @see <http://www.whatwg.org/html/>
*/
interface nsISelection;
[uuid(cd31e61f-cfc2-4b91-9385-17b6a2d0633d)]
interface nsIDOMHTMLDocument : nsIDOMDocument
{
void clear();
// DOM Range
nsISelection getSelection();
// More obsolete APIs
/**
* @deprecated These are old Netscape 4 methods. Do not use,
* the implementation is no-op.
*/
void captureEvents();
void releaseEvents();
};