diff --git a/frameworks/ets/ani/include/sts_common.h b/frameworks/ets/ani/include/sts_common.h index 4478ffcc56f4216554cf9e107e38a948c345bb08..ee8a4dce7358b1f2f9aa7a76d8627b82f979d19f 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) {