From 820192f4ee7f7f4967507962ae58e44f071fcdc0 Mon Sep 17 00:00:00 2001 From: jiyujia926 Date: Wed, 20 Nov 2024 17:19:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jiyujia926 --- adapter/ohos/capability/preference/storage_impl.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/adapter/ohos/capability/preference/storage_impl.cpp b/adapter/ohos/capability/preference/storage_impl.cpp index 365822d08de..68cc8e36602 100644 --- a/adapter/ohos/capability/preference/storage_impl.cpp +++ b/adapter/ohos/capability/preference/storage_impl.cpp @@ -31,8 +31,6 @@ void StorageImpl::SetString(const std::string& key, const std::string& value) { std::shared_ptr pref = GetPreference(fileName_); CHECK_NULL_VOID(pref); - TAG_LOGD(AceLogTag::ACE_STATE_MGMT, "Set preference with key %{public}s, value %{public}s", - key.c_str(), value.c_str()); pref->PutString(key, value); pref->Flush(); } @@ -41,7 +39,6 @@ std::string StorageImpl::GetString(const std::string& key) { std::shared_ptr pref = GetPreference(fileName_); CHECK_NULL_RETURN(pref, ""); - LOGD("Get preference with key %{public}s", key.c_str()); return pref->GetString(key, ""); } @@ -50,7 +47,6 @@ void StorageImpl::Clear() std::shared_ptr pref = GetPreference(fileName_); CHECK_NULL_VOID(pref); pref->Clear(); - LOGD("StorageImpl: Clear preferences"); NativePreferences::PreferencesHelper::DeletePreferences(fileName_); preferences_.erase(fileName_); } @@ -59,7 +55,6 @@ void StorageImpl::Delete(const std::string& key) { std::shared_ptr pref = GetPreference(fileName_); CHECK_NULL_VOID(pref); - LOGD("StorageImpl: Delete preference with key %{public}s", key.c_str()); pref->Delete(key); pref->FlushSync(); }