From 36d7d32e000d06310635db0cf08898ef6f68147e Mon Sep 17 00:00:00 2001 From: liwang <965027894@qq.com> Date: Thu, 4 Sep 2025 16:43:56 +0800 Subject: [PATCH] =?UTF-8?q?sts=5Fcommon.h=E6=96=87=E4=BB=B6=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liwang <965027894@qq.com> --- frameworks/ets/ani/include/sts_common.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/frameworks/ets/ani/include/sts_common.h b/frameworks/ets/ani/include/sts_common.h index 4478ffcc5..ee8a4dce7 100644 --- a/frameworks/ets/ani/include/sts_common.h +++ b/frameworks/ets/ani/include/sts_common.h @@ -127,17 +127,6 @@ static bool CallSetter(ani_env* env, ani_class cls, ani_object &object, const ch return true; } -[[maybe_unused]]static bool CallSetterNull(ani_env* env, ani_class cls, ani_object &object, const char* propertyName) -{ - ani_ref nullRef = nullptr; - ani_status status = env->GetNull(&nullRef); - if (status != ANI_OK) { - ANS_LOGE("GetNull %{public}s failed %{public}d", propertyName, status); - return false; - } - return CallSetter(env, cls, object, propertyName, nullRef); -} - template static bool EnumConvertAniToNative(ani_env *env, ani_enum_item enumItem, T &result) { -- Gitee