From 027fd3e9473f72deb4665723135a2e641bf8ffb2 Mon Sep 17 00:00:00 2001 From: liwang <965027894@qq.com> Date: Thu, 4 Sep 2025 16:43:20 +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 359947a43..3e1d48e39 100644 --- a/frameworks/ets/ani/include/sts_common.h +++ b/frameworks/ets/ani/include/sts_common.h @@ -129,17 +129,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