[Release] wrt-plugins-common_0.3.101
[framework/web/wrt-plugins-common.git] / src / standards / W3C / Widget / JSWidget.h
index c0bf403..f1f979c 100644 (file)
@@ -49,18 +49,6 @@ class JSWidget
                                          const JSValueRef arguments[],
                                          JSValueRef* exception);
 
-    /**
-     * This function will acquire global context which is used later to
-     * keep JSValueProtect/Unprotect functionality working.
-     * This is workaround for JSCore semantic: when an object is created with
-     * JSObjectMakeConstructor a context passed to createCallback function
-     * is different (shorter lifecycle) than global context, so JSValueUnprotect
-     * called in finalize may fail because of invalid context.
-     */
-    static void acquireGlobalContext(java_script_context_t global_context,
-                                     js_object_instance_t iframe,
-                                     js_object_instance_t object);
-
   private:
     /**
      * The callback invoked when an object is first created.
@@ -86,11 +74,6 @@ class JSWidget
 
     static JSClassRef m_jsClassRef;
 
-    /**
-     * Global context acquired by acquireGlobalContext() function.
-     */
-    static JSContextRef m_globalContext;
-
     // getters for properties
     static JSValueRef getAuthor(JSContextRef context,
                                 JSObjectRef object,