summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb
diff options
context:
space:
mode:
authorAndrew Kaster <akaster@serenityos.org>2022-09-25 18:57:44 -0600
committerLinus Groh <mail@linusgroh.de>2022-10-01 21:05:32 +0100
commit45838579c3e870b89c38821c3979e8be55b73cdc (patch)
treefae14e68173053b9bb854f8afb0fdfd5172dced5 /Userland/Libraries/LibWeb
parenta1286f5120f2b3742580ca391bf59cd8c9652bb0 (diff)
downloadserenity-45838579c3e870b89c38821c3979e8be55b73cdc.zip
LibWeb: Remove unused DOM::Node::window helper method
This was a crutch for the initial GC conversion that we can get rid of thanks to moving web prototypes and constructors off of Window.
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Node.cpp5
-rw-r--r--Userland/Libraries/LibWeb/DOM/Node.h2
2 files changed, 0 insertions, 7 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Node.cpp b/Userland/Libraries/LibWeb/DOM/Node.cpp
index 8a0b55a969..7e4e83c23f 100644
--- a/Userland/Libraries/LibWeb/DOM/Node.cpp
+++ b/Userland/Libraries/LibWeb/DOM/Node.cpp
@@ -1497,9 +1497,4 @@ bool Node::is_following(Node const& other) const
return false;
}
-HTML::Window& Node::window() const
-{
- return document().window();
-}
-
}
diff --git a/Userland/Libraries/LibWeb/DOM/Node.h b/Userland/Libraries/LibWeb/DOM/Node.h
index 16b627039b..cf2ad07a03 100644
--- a/Userland/Libraries/LibWeb/DOM/Node.h
+++ b/Userland/Libraries/LibWeb/DOM/Node.h
@@ -116,8 +116,6 @@ public:
Document& document() { return *m_document; }
Document const& document() const { return *m_document; }
- HTML::Window& window() const;
-
JS::GCPtr<Document> owner_document() const;
const HTML::HTMLAnchorElement* enclosing_link_element() const;