فهرست منبع

LibWeb: Remove now-unused Bindings::wrap()

Andreas Kling 2 سال پیش
والد
کامیت
1bd4ad8b6d
1فایلهای تغییر یافته به همراه3 افزوده شده و 7 حذف شده
  1. 3 7
      Userland/Libraries/LibWeb/Bindings/PlatformObject.h

+ 3 - 7
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