1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:57:44 +00:00

LibWeb: Remove Range constructor/prototype caches from WindowObject

These are constructed on the code generator path now instead.
This commit is contained in:
Andreas Kling 2021-01-23 19:02:02 +01:00
parent cfa2fb2eb3
commit c68148efc5
2 changed files with 0 additions and 12 deletions

View file

@ -47,9 +47,6 @@ public:
Origin origin() const;
RangePrototype* range_prototype() { return m_range_prototype; }
RangeConstructor* range_constructor() { return m_range_constructor; }
JS::Object* web_prototype(const String& class_name) { return m_prototypes.get(class_name).value_or(nullptr); }
JS::NativeFunction* web_constructor(const String& class_name) { return m_constructors.get(class_name).value_or(nullptr); }
@ -100,9 +97,6 @@ private:
NonnullRefPtr<DOM::Window> m_impl;
RangePrototype* m_range_prototype { nullptr };
RangeConstructor* m_range_constructor { nullptr };
HashMap<String, JS::Object*> m_prototypes;
HashMap<String, JS::NativeFunction*> m_constructors;
};