diff --git a/Userland/Libraries/LibWeb/DOM/Document.cpp b/Userland/Libraries/LibWeb/DOM/Document.cpp index 7734cad659..864efb4d86 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.cpp +++ b/Userland/Libraries/LibWeb/DOM/Document.cpp @@ -2960,17 +2960,6 @@ bool Document::is_allowed_to_use_feature(PolicyControlledFeature feature) const return false; } -void Document::did_stop_being_active_document_in_browsing_context(Badge) -{ - tear_down_layout_tree(); - - auto observers_to_notify = m_document_observers.values(); - for (auto& document_observer : observers_to_notify) { - if (document_observer->document_became_inactive()) - document_observer->document_became_inactive()->function()(); - } -} - void Document::did_stop_being_active_document_in_navigable() { tear_down_layout_tree(); diff --git a/Userland/Libraries/LibWeb/DOM/Document.h b/Userland/Libraries/LibWeb/DOM/Document.h index a3d389cb9c..b0b061496e 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.h +++ b/Userland/Libraries/LibWeb/DOM/Document.h @@ -504,7 +504,6 @@ public: bool is_allowed_to_use_feature(PolicyControlledFeature) const; - void did_stop_being_active_document_in_browsing_context(Badge); void did_stop_being_active_document_in_navigable(); bool query_command_supported(String const&) const;