diff --git a/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp b/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp
index 72240e73c6..90f9e1b514 100644
--- a/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp
+++ b/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp
@@ -747,35 +747,6 @@ BrowsingContext const* BrowsingContext::the_one_permitted_sandboxed_navigator()
return nullptr;
}
-// https://html.spec.whatwg.org/multipage/browsers.html#document-family
-Vector> BrowsingContext::document_family() const
-{
- HashTable documents;
- for (auto& entry : m_session_history) {
- if (!entry->document_state->document())
- continue;
- if (documents.set(const_cast(entry->document_state->document().ptr())) == AK::HashSetResult::ReplacedExistingEntry)
- continue;
- for (auto& context : entry->document_state->document()->list_of_descendant_browsing_contexts()) {
- for (auto& document : context->document_family()) {
- documents.set(document.ptr());
- }
- }
- }
-
- Vector> family;
- for (auto* document : documents) {
- family.append(*document);
- }
- return family;
-}
-
-// https://html.spec.whatwg.org/multipage/browsers.html#document-family
-bool BrowsingContext::document_family_contains(DOM::Document const& document) const
-{
- return document_family().first_matching([&](auto& entry) { return entry.ptr() == &document; }).has_value();
-}
-
void BrowsingContext::append_child(JS::NonnullGCPtr child)
{
VERIFY(!child->m_parent);
diff --git a/Userland/Libraries/LibWeb/HTML/BrowsingContext.h b/Userland/Libraries/LibWeb/HTML/BrowsingContext.h
index cbba1d4015..cc63de8567 100644
--- a/Userland/Libraries/LibWeb/HTML/BrowsingContext.h
+++ b/Userland/Libraries/LibWeb/HTML/BrowsingContext.h
@@ -191,9 +191,6 @@ public:
// https://html.spec.whatwg.org/multipage/origin.html#one-permitted-sandboxed-navigator
BrowsingContext const* the_one_permitted_sandboxed_navigator() const;
- Vector> document_family() const;
- bool document_family_contains(DOM::Document const&) const;
-
bool has_been_discarded() const { return m_has_been_discarded; }
Optional const& creator_url() const { return m_creator_url; }