mirror of
https://github.com/RGBCube/serenity
synced 2025-07-22 22:07:34 +00:00
LibWeb: Delete unused create_a_new_browsing_context_group()
Became unused after introducing create_a_new_browsing_context_group_and_document() used in navigables
This commit is contained in:
parent
6665f0db43
commit
24f97491bf
2 changed files with 0 additions and 19 deletions
|
@ -52,23 +52,6 @@ auto BrowsingContextGroup::create_a_new_browsing_context_group_and_document(Page
|
||||||
return BrowsingContextGroupAndDocument { group, document };
|
return BrowsingContextGroupAndDocument { group, document };
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/browsers.html#creating-a-new-browsing-context-group
|
|
||||||
JS::NonnullGCPtr<BrowsingContextGroup> BrowsingContextGroup::create_a_new_browsing_context_group(Web::Page& page)
|
|
||||||
{
|
|
||||||
// 1. Let group be a new browsing context group.
|
|
||||||
// 2. Append group to the user agent's browsing context group set.
|
|
||||||
auto group = Bindings::main_thread_vm().heap().allocate_without_realm<BrowsingContextGroup>(page);
|
|
||||||
|
|
||||||
// 3. Let browsingContext be the result of creating a new browsing context with null, null, and group.
|
|
||||||
auto browsing_context = BrowsingContext::create_a_new_browsing_context(page, nullptr, nullptr, *group);
|
|
||||||
|
|
||||||
// 4. Append browsingContext to group.
|
|
||||||
group->append(move(browsing_context));
|
|
||||||
|
|
||||||
// 5. Return group.
|
|
||||||
return *group;
|
|
||||||
}
|
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/browsers.html#bcg-append
|
// https://html.spec.whatwg.org/multipage/browsers.html#bcg-append
|
||||||
void BrowsingContextGroup::append(BrowsingContext& browsing_context)
|
void BrowsingContextGroup::append(BrowsingContext& browsing_context)
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,8 +18,6 @@ class BrowsingContextGroup final : public JS::Cell {
|
||||||
JS_CELL(BrowsingContextGroup, JS::Cell);
|
JS_CELL(BrowsingContextGroup, JS::Cell);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static JS::NonnullGCPtr<BrowsingContextGroup> create_a_new_browsing_context_group(Page&);
|
|
||||||
|
|
||||||
struct BrowsingContextGroupAndDocument {
|
struct BrowsingContextGroupAndDocument {
|
||||||
JS::NonnullGCPtr<HTML::BrowsingContextGroup> browsing_context;
|
JS::NonnullGCPtr<HTML::BrowsingContextGroup> browsing_context;
|
||||||
JS::NonnullGCPtr<DOM::Document> document;
|
JS::NonnullGCPtr<DOM::Document> document;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue