mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
LibWeb: Remove unused HTML::Window::create_with_document()
This commit is contained in:
parent
7a9b8ced38
commit
a9cae56f8e
2 changed files with 0 additions and 14 deletions
|
@ -85,20 +85,8 @@ JS::NonnullGCPtr<Window> Window::create(JS::Realm& realm)
|
||||||
return *realm.heap().allocate<Window>(realm, realm);
|
return *realm.heap().allocate<Window>(realm, realm);
|
||||||
}
|
}
|
||||||
|
|
||||||
JS::NonnullGCPtr<Window> Window::create_with_document(DOM::Document& document)
|
|
||||||
{
|
|
||||||
return *document.heap().allocate<Window>(document.shape().realm(), document);
|
|
||||||
}
|
|
||||||
|
|
||||||
Window::Window(JS::Realm& realm)
|
Window::Window(JS::Realm& realm)
|
||||||
: DOM::EventTarget(realm)
|
: DOM::EventTarget(realm)
|
||||||
{
|
|
||||||
// FIXME: Should this be WindowPrototype?
|
|
||||||
}
|
|
||||||
|
|
||||||
Window::Window(DOM::Document& document)
|
|
||||||
: DOM::EventTarget(document.shape().realm())
|
|
||||||
, m_associated_document(document)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,6 @@ class Window final
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static JS::NonnullGCPtr<Window> create(JS::Realm&);
|
static JS::NonnullGCPtr<Window> create(JS::Realm&);
|
||||||
static JS::NonnullGCPtr<Window> create_with_document(DOM::Document&);
|
|
||||||
|
|
||||||
~Window();
|
~Window();
|
||||||
|
|
||||||
|
@ -119,7 +118,6 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
explicit Window(JS::Realm&);
|
explicit Window(JS::Realm&);
|
||||||
explicit Window(DOM::Document&);
|
|
||||||
virtual void initialize(JS::Realm&) override;
|
virtual void initialize(JS::Realm&) override;
|
||||||
|
|
||||||
virtual void visit_edges(Cell::Visitor&) override;
|
virtual void visit_edges(Cell::Visitor&) override;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue