From 1b6bf9b6d777322cc7b2a2e438c13e55017962bd Mon Sep 17 00:00:00 2001 From: Zhao-PengFei35 Date: Fri, 9 Sep 2022 14:31:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Zhao-PengFei35 --- .../kits/napi/src/efficiency_resources_operation.cpp | 1 - .../src/bg_efficiency_resources_mgr.cpp | 7 ------- 2 files changed, 8 deletions(-) diff --git a/interfaces/kits/napi/src/efficiency_resources_operation.cpp b/interfaces/kits/napi/src/efficiency_resources_operation.cpp index da4ef12..8d67b8a 100644 --- a/interfaces/kits/napi/src/efficiency_resources_operation.cpp +++ b/interfaces/kits/napi/src/efficiency_resources_operation.cpp @@ -102,7 +102,6 @@ bool CheckValidInfo(const EfficiencyResourceInfo ¶ms) napi_value ApplyEfficiencyResources(napi_env env, napi_callback_info info) { - BGTASK_LOGD("start ApplyEfficiencyResources"); EfficiencyResourceInfo params; napi_value result = nullptr; if (ParseParameters(env, info, params) == nullptr || !CheckValidInfo(params)) { diff --git a/services/efficiency_resources/src/bg_efficiency_resources_mgr.cpp b/services/efficiency_resources/src/bg_efficiency_resources_mgr.cpp index 0150e61..0d78bed 100644 --- a/services/efficiency_resources/src/bg_efficiency_resources_mgr.cpp +++ b/services/efficiency_resources/src/bg_efficiency_resources_mgr.cpp @@ -29,8 +29,6 @@ #include "bundle_manager_helper.h" #include "efficiency_resource_log.h" -#include -#include namespace OHOS { namespace BackgroundTaskMgr { namespace { @@ -159,9 +157,7 @@ void BgEfficiencyResourcesMgr::HandlePersistenceData() void BgEfficiencyResourcesMgr::EraseRecordIf(ResourceRecordMap &infoMap, const std::function &fun) { - BGTASK_LOGI("infoMap.size(): %{public}d ", infoMap.size()); for (auto iter = infoMap.begin(); iter != infoMap.end();) { - BGTASK_LOGI("key, result %{public}d %{public}d ", iter->first, fun(*iter)); if (fun(*iter)) { infoMap.erase(iter++); } else { @@ -179,9 +175,6 @@ void BgEfficiencyResourcesMgr::CheckPersistenceData(const std::vector