From 1bd4ad8b6d1a980e986f447694a31ef2d4c6e1ac Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 4 Sep 2022 21:57:47 +0200 Subject: [PATCH] LibWeb: Remove now-unused Bindings::wrap() --- Userland/Libraries/LibWeb/Bindings/PlatformObject.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Userland/Libraries/LibWeb/Bindings/PlatformObject.h b/Userland/Libraries/LibWeb/Bindings/PlatformObject.h index a866933dd4..c0e6cf76b1 100644 --- a/Userland/Libraries/LibWeb/Bindings/PlatformObject.h +++ b/Userland/Libraries/LibWeb/Bindings/PlatformObject.h @@ -24,13 +24,9 @@ namespace Web::Bindings { return *this; \ } -#define WRAPPER_HACK(class_, namespace_) \ - namespace Web::Bindings { \ - inline JS::Object* wrap(JS::Realm&, namespace_::class_& object) \ - { \ - return &object; \ - } \ - using class_##Wrapper = namespace_::class_; \ +#define WRAPPER_HACK(class_, namespace_) \ + namespace Web::Bindings { \ + using class_##Wrapper = namespace_::class_; \ } // https://webidl.spec.whatwg.org/#dfn-platform-object