!1578 移除冗余代码

Merge pull request !1578 from Aurora/master
This commit is contained in:
openharmony_ci 2023-11-28 02:56:57 +00:00 committed by Gitee
commit b4e60927de
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 1 additions and 6 deletions

View File

@ -175,8 +175,6 @@ int32_t MultiSimController::UpdateDataByIccId(int slotId, const std::string &new
TELEPHONY_LOGE("failed by nullptr");
return INVALID_VALUE;
}
SimRdbInfo simRdbInfo;
simDbHelper_->QueryDataByIccId(newIccId, simRdbInfo);
DataShare::DataShareValuesBucket values;
DataShare::DataShareValueObject slotObj(slotId);
values.Put(SimData::SLOT_INDEX, slotObj);
@ -188,7 +186,7 @@ int32_t MultiSimController::UpdateDataByIccId(int slotId, const std::string &new
values.Put(SimData::IS_MESSAGE_CARD, mainCardObj);
values.Put(SimData::IS_CELLULAR_DATA_CARD, mainCardObj);
}
return simDbHelper_->UpdateDataByIccId(newIccId, values); // finish re active
return simDbHelper_->UpdateDataByIccId(newIccId, values);
}
int32_t MultiSimController::InsertData(int slotId, const std::string &newIccId)
@ -197,8 +195,6 @@ int32_t MultiSimController::InsertData(int slotId, const std::string &newIccId)
TELEPHONY_LOGE("failed by nullptr");
return INVALID_VALUE;
}
SimRdbInfo simRdbInfo;
simDbHelper_->QueryDataByIccId(newIccId, simRdbInfo);
DataShare::DataShareValuesBucket values;
DataShare::DataShareValueObject slotObj(slotId);
DataShare::DataShareValueObject iccidObj(newIccId);

View File

@ -41,7 +41,6 @@ MultiSimMonitor::MultiSimMonitor(const std::shared_ptr<AppExecFwk::EventRunner>
MultiSimMonitor::~MultiSimMonitor()
{
TELEPHONY_LOGD("destory");
UnRegisterSimNotify();
}
void MultiSimMonitor::Init()