mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibWeb: Remove Intrinsics::cached_web_prototype
It's now unused, and won't be safe to use once Web constructors and prototypes are lazily created.
This commit is contained in:
parent
c2939d58c7
commit
3deb8e322f
Notes:
sideshowbarker
2024-07-17 03:03:37 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/3deb8e322f Pull-request: https://github.com/SerenityOS/serenity/pull/16945 Reviewed-by: https://github.com/alimpfard
2 changed files with 0 additions and 17 deletions
|
@ -13,16 +13,6 @@
|
|||
|
||||
namespace Web::Bindings {
|
||||
|
||||
JS::Object& Intrinsics::cached_web_prototype(DeprecatedString const& class_name)
|
||||
{
|
||||
auto it = m_prototypes.find(class_name);
|
||||
if (it == m_prototypes.end()) {
|
||||
dbgln("Missing prototype: {}", class_name);
|
||||
}
|
||||
VERIFY(it != m_prototypes.end());
|
||||
return *it->value;
|
||||
}
|
||||
|
||||
void Intrinsics::visit_edges(JS::Cell::Visitor& visitor)
|
||||
{
|
||||
Base::visit_edges(visitor);
|
||||
|
|
|
@ -25,8 +25,6 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
JS::Object& cached_web_prototype(DeprecatedString const& class_name);
|
||||
|
||||
template<typename PrototypeType>
|
||||
JS::Object& ensure_web_prototype(DeprecatedString const& class_name)
|
||||
{
|
||||
|
@ -75,9 +73,4 @@ template<typename T>
|
|||
return host_defined_intrinsics(realm).ensure_web_constructor<T>(class_name);
|
||||
}
|
||||
|
||||
[[nodiscard]] inline JS::Object& cached_web_prototype(JS::Realm& realm, DeprecatedString const& class_name)
|
||||
{
|
||||
return host_defined_intrinsics(realm).cached_web_prototype(class_name);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue