!2261 析构中无需对数据库监听进行去注册

Merge pull request !2261 from dingxiaochen/master
This commit is contained in:
openharmony_ci 2024-09-07 14:21:09 +00:00 committed by Gitee
commit 73d56487b9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -63,7 +63,6 @@ NetworkSearchManager::~NetworkSearchManager()
for (int32_t slotId = 0; slotId < SIM_SLOT_COUNT; slotId++) {
std::shared_ptr<NetworkSearchManagerInner> inner = FindManagerInner(slotId);
if (inner != nullptr) {
inner->UnRegisterSetting();
inner->UnRegisterDeviceStateObserver();
}
}