diff --git a/dom/base/DocGroup.cpp b/dom/base/DocGroup.cpp index f50ffa599e47..8403ac6157b9 100644 --- a/dom/base/DocGroup.cpp +++ b/dom/base/DocGroup.cpp @@ -382,10 +382,5 @@ bool DocGroup::IsActive() const { return false; } -void DocGroup::ClearEventTarget() { - nsCOMPtr target = do_QueryInterface(mEventTarget); - target->ClearDocGroup(); -} - } // namespace dom } // namespace mozilla diff --git a/dom/base/DocGroup.h b/dom/base/DocGroup.h index f09790529684..5c8100a7f056 100644 --- a/dom/base/DocGroup.h +++ b/dom/base/DocGroup.h @@ -130,8 +130,6 @@ class DocGroup final { bool IsEmpty() const { return mDocuments.IsEmpty(); } - void ClearEventTarget(); - private: DocGroup(BrowsingContextGroup* aBrowsingContextGroup, const nsACString& aKey);