diff --git a/services/common/include/bundle_active_event_reporter.h b/services/common/include/bundle_active_event_reporter.h index 75217d91ac1adc1394c8284865196143c2ee447d..c56bf00129911de70c5d91757f25c167cbb06f5b 100644 --- a/services/common/include/bundle_active_event_reporter.h +++ b/services/common/include/bundle_active_event_reporter.h @@ -44,7 +44,6 @@ private: ffrt::mutex mutex_; bool isTaskSubmit_ = false; std::string fileSizeRecorderName_; - int64_t lastReportTime_ = -1; }; } // namespace DeviceUsageStats } // namespace OHOS diff --git a/services/common/src/bundle_active_config_reader.cpp b/services/common/src/bundle_active_config_reader.cpp index 3b3de1e5ac0fd299d1030ef5bd3917aaf8c59cc4..5d17c8c46f7d7dc332291b6bd34bd2151aebcde3 100644 --- a/services/common/src/bundle_active_config_reader.cpp +++ b/services/common/src/bundle_active_config_reader.cpp @@ -41,7 +41,6 @@ const int32_t DEFAULT_MIN_TOTAL_USE_DAYS = 4; const int32_t DEFAULT_TOP_USE_HOURS_LIMIT = 6; const int32_t DEFAULT_MIN_HOUR_USE_DAYS = 4; const int32_t DEFAULT_MAX_HIGH_FREQUENCY_HOUR_NUM = 3; -const int32_t MAX_BUFFER = 2048; const uint64_t DEFAULT_MAX_DATA_SIZE = 5 * 1024 * 1024; diff --git a/services/common/src/bundle_active_core.cpp b/services/common/src/bundle_active_core.cpp index f869d2e63bf660940685bf10cb8f6188a2377e97..4757711f225dd58c0a2125dbd6d0db7ec00f89c9 100644 --- a/services/common/src/bundle_active_core.cpp +++ b/services/common/src/bundle_active_core.cpp @@ -44,7 +44,6 @@ constexpr int32_t INDEX_USE_TIME = 1; constexpr int32_t INDEX_HOUR = 0; constexpr double DEFAULT_PERCENT_USER_SPACE_LIMIT = 0.1; static constexpr char RSS[] = "RSS"; -static constexpr char FILEMANAGEMENT[] = "FILEMANAGEMENT"; static constexpr char DATA_PATH[] = "/data"; // 用于根据使用次数对时段进行降序的数据结构 diff --git a/services/common/src/bundle_active_usage_database.cpp b/services/common/src/bundle_active_usage_database.cpp index 68950e1f9748b914fef5e11ebf864fa8115fb7c6..9f9f233b0f5001c6413af740baa4725e1a3482fb 100644 --- a/services/common/src/bundle_active_usage_database.cpp +++ b/services/common/src/bundle_active_usage_database.cpp @@ -43,7 +43,6 @@ using namespace std; namespace { const int32_t MAX_FILES_EVERY_INTERVAL_TYPE[SORTED_TABLE_ARRAY_NUMBER] = {30, 30, 12, 10}; const int32_t MAIN_APP_INDEX = 0; - const int32_t FILE_VERSION_LINE_NUM = 50; static constexpr char RSS[] = "RSS"; } BundleActiveUsageDatabase::BundleActiveUsageDatabase() diff --git a/services/packagegroup/src/bundle_active_user_history.cpp b/services/packagegroup/src/bundle_active_user_history.cpp index cfe483645f9e24018d624939b3b4a21ceb3d8808..c095eef62247efb3aaf08515cea5d706d11c489c 100644 --- a/services/packagegroup/src/bundle_active_user_history.cpp +++ b/services/packagegroup/src/bundle_active_user_history.cpp @@ -183,7 +183,6 @@ void BundleActiveUserHistory::ReportUsage(shared_ptr const int64_t bootBasedTimeStamp, const int64_t timeUntilNextCheck, const int32_t userId) { string bundleName = event.bundleName_; - int32_t uid = event.uid_; oneBundleUsageHistory->bundlefirstUseTimeStamp_ = std::min(oneBundleUsageHistory->bundlefirstUseTimeStamp_, event.timeStamp_); if ((oneBundleUsageHistory->reasonInGroup_ & GROUP_CONTROL_REASON_MASK) == GROUP_CONTROL_REASON_FORCED) {