[gjs/esm/static-imports: 45/52] Cleanup - defaultclassops because no finalize is left.




commit b0edb7b2f0a3b0aaa578751b8fdc6b5b6c60398e
Author: Evan Welsh <contact evanwelsh com>
Date:   Sat Jan 2 10:19:49 2021 -0800

    Cleanup - defaultclassops because no finalize is left.

 gjs/global.cpp | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)
---
diff --git a/gjs/global.cpp b/gjs/global.cpp
index 8837235c..735ef8e7 100644
--- a/gjs/global.cpp
+++ b/gjs/global.cpp
@@ -283,23 +283,11 @@ class GjsInternalGlobal : GjsBaseGlobal {
         JS_FN("uriExists", gjs_internal_uri_exists, 1, 0),
         JS_FS_END};
 
-    static constexpr JSClassOps classops = {nullptr,  // addProperty
-                                            nullptr,  // deleteProperty
-                                            nullptr,  // enumerate
-                                            JS_NewEnumerateStandardClasses,
-                                            JS_ResolveStandardClass,
-                                            JS_MayResolveStandardClass,
-                                            nullptr,  // finalize
-                                            nullptr,  // call
-                                            nullptr,  // hasInstance
-                                            nullptr,  // construct
-                                            JS_GlobalObjectTraceHook};
-
     static constexpr JSClass klass = {
         "GjsInternalGlobal",
         JSCLASS_GLOBAL_FLAGS_WITH_SLOTS(
             static_cast<uint32_t>(GjsInternalGlobalSlot::LAST)),
-        &classops,
+        &defaultclassops,
     };
 
  public:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]