diff --git a/frameworks/ets/ani/include/sts_common.h b/frameworks/ets/ani/include/sts_common.h index 359947a43308e32874ca843adf4bac57d93f0564..3e1d48e39f17be718b5d6aa46bc75aa79a34fef0 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) {