mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibJS: Delete unused Shape::create_for_prototype()
This commit is contained in:
parent
279913a223
commit
6404f6db57
Notes:
github-actions[bot]
2025-05-23 12:52:33 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 6404f6db57
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4846
2 changed files with 0 additions and 11 deletions
|
@ -315,16 +315,6 @@ void Shape::remove_property_without_transition(PropertyKey const& property_key,
|
|||
}
|
||||
}
|
||||
|
||||
GC::Ref<Shape> Shape::create_for_prototype(GC::Ref<Realm> realm, GC::Ptr<Object> prototype)
|
||||
{
|
||||
auto new_shape = realm->heap().allocate<Shape>(realm);
|
||||
s_all_prototype_shapes.set(new_shape);
|
||||
new_shape->m_is_prototype_shape = true;
|
||||
new_shape->m_prototype = prototype;
|
||||
new_shape->m_prototype_chain_validity = realm->heap().allocate<PrototypeChainValidity>();
|
||||
return new_shape;
|
||||
}
|
||||
|
||||
GC::Ref<Shape> Shape::clone_for_prototype()
|
||||
{
|
||||
VERIFY(!m_is_prototype_shape);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue