From bbab9aa5735fe13f8ce17a29a7b1ad1b721e8d66 Mon Sep 17 00:00:00 2001 From: wangbowen36 Date: Tue, 10 Jun 2025 22:50:37 +0800 Subject: [PATCH] Delete Context Interface Issue: https://gitee.com/openharmony/interface_sdk_c/issues/ICE57Y Signed-off-by: wangbowen36 --- arkui/napi/libnapi.ndk.json | 8 -------- arkui/napi/native_api.h | 25 ------------------------- 2 files changed, 33 deletions(-) diff --git a/arkui/napi/libnapi.ndk.json b/arkui/napi/libnapi.ndk.json index 7460d98ae..04e3cc6d4 100644 --- a/arkui/napi/libnapi.ndk.json +++ b/arkui/napi/libnapi.ndk.json @@ -242,13 +242,5 @@ { "first_introduced": "18", "name": "napi_wrap_enhance" - }, - { - "first_introduced": "20", - "name": "napi_create_ark_context" - }, - { - "first_introduced": "20", - "name": "napi_destroy_ark_context" } ] diff --git a/arkui/napi/native_api.h b/arkui/napi/native_api.h index 332995c92..c1dd962f8 100644 --- a/arkui/napi/native_api.h +++ b/arkui/napi/native_api.h @@ -1639,31 +1639,6 @@ NAPI_EXTERN napi_status napi_define_class(napi_env env, size_t property_count, const napi_property_descriptor* properties, napi_value* result); - -/** - * @brief To create a new virtual machine context. - * @param env Current running virtual machine context. - * @param newEnv New generated virtual machine context which is expected to be used later. - * - * @return Returns the function execution status. - * {@link napi_ok } If the function executed successfully.\n - * {@link napi_invalid_arg } If the param env is nullptr.\n - * {@link napi_pending_exception } If have uncaught exception, or exception occurs in execution.\n - * @since 20 - */ -NAPI_EXTERN napi_status napi_create_ark_context(napi_env env, napi_env *newEnv); - -/** - * @brief To destroy a virtual machine context which will not be used again. - * @param env Virtual machine context expected to be destroyed. - * - * @return Returns the function execution status. - * {@link napi_ok } If the function executed successfully.\n - * {@link napi_invalid_arg } If the param env is nullptr.\n - * {@link napi_pending_exception } If have uncaught exception, or exception occurs in execution.\n - * @since 20 - */ -NAPI_EXTERN napi_status napi_destroy_ark_context(napi_env env); #ifdef __cplusplus } #endif -- Gitee