From ade4fc177920546c765c5802a57f6d0e9d7434f8 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Wed, 4 Sep 2024 19:24:27 -0600 Subject: [PATCH] LibWeb: Remove obsolete PlatformObject::global_object() API --- Userland/Libraries/LibWeb/Bindings/PlatformObject.cpp | 6 ------ Userland/Libraries/LibWeb/Bindings/PlatformObject.h | 3 --- 2 files changed, 9 deletions(-) diff --git a/Userland/Libraries/LibWeb/Bindings/PlatformObject.cpp b/Userland/Libraries/LibWeb/Bindings/PlatformObject.cpp index 61bf2b21bbe..2ece27ae129 100644 --- a/Userland/Libraries/LibWeb/Bindings/PlatformObject.cpp +++ b/Userland/Libraries/LibWeb/Bindings/PlatformObject.cpp @@ -30,12 +30,6 @@ JS::Realm& PlatformObject::realm() const return shape().realm(); } -// FIXME: remove this -HTML::Window& PlatformObject::global_object() const -{ - return verify_cast(realm().global_object()); -} - // https://webidl.spec.whatwg.org/#dfn-named-property-visibility JS::ThrowCompletionOr PlatformObject::is_named_property_exposed_on_object(JS::PropertyKey const& property_key) const { diff --git a/Userland/Libraries/LibWeb/Bindings/PlatformObject.h b/Userland/Libraries/LibWeb/Bindings/PlatformObject.h index 3afe22a778c..643b611a4bd 100644 --- a/Userland/Libraries/LibWeb/Bindings/PlatformObject.h +++ b/Userland/Libraries/LibWeb/Bindings/PlatformObject.h @@ -30,9 +30,6 @@ public: JS::Realm& realm() const; - // FIXME: This should return a type that works in both window and worker contexts. - HTML::Window& global_object() const; - // https://webidl.spec.whatwg.org/#implements // This is implemented by overrides that get generated by the WEB_PLATFORM_OBJECT macro. [[nodiscard]] virtual bool implements_interface(String const&) const { return false; }