Commit 6891c2a3 authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

Code cleanup

parent fdc269b7
......@@ -155,10 +155,6 @@ void UEContextReleaseCompleteMsg::setPduSessionResourceCxtRelCplList(
const std::vector<PDUSessionResourceCxtRelCplItem_t>& list) {
PDUSessionResourceListCxtRelCpl m_pduSessionResourceListCxtRelCpl = {};
// if (pduSessionResourceListCxtRelCpl)
// PDUSessionResourceListCxtRelCpl* pduSessionResourceListCxtRelCpl = new
// PDUSessionResourceListCxtRelCpl();
std::vector<PDUSessionResourceItemCxtRelCpl> cxtRelCplList;
for (int i = 0; i < list.size(); i++) {
......@@ -217,13 +213,10 @@ bool UEContextReleaseCompleteMsg::getPduSessionResourceCxtRelCplList(
for (auto& item : cxtRelCplList) {
PDUSessionResourceCxtRelCplItem_t rel = {};
PDUSessionID pDUSessionID = {};
item.getPDUSessionResourceItemCxtRelCpl(pDUSessionID);
pDUSessionID.getPDUSessionID(rel.pduSessionId);
list.push_back(rel);
}
return true;
}
......@@ -291,11 +284,8 @@ bool UEContextReleaseCompleteMsg::decodeFromPdu(Ngap_NGAP_PDU_t* ngapMsgPdu) {
Ngap_Criticality_reject &&
ies->protocolIEs.list.array[i]->value.present ==
Ngap_UEContextReleaseComplete_IEs__value_PR_PDUSessionResourceListCxtRelCpl) {
// pduSessionResourceListCxtRelCpl =
// new PDUSessionResourceListCxtRelCpl();
PDUSessionResourceListCxtRelCpl m_pduSessionResourceListCxtRelCpl =
{};
if (!m_pduSessionResourceListCxtRelCpl
.decodefromPDUSessionResourceListCxtRelCpl(
ies->protocolIEs.list.array[i]
......@@ -307,7 +297,6 @@ bool UEContextReleaseCompleteMsg::decodeFromPdu(Ngap_NGAP_PDU_t* ngapMsgPdu) {
pduSessionResourceListCxtRelCpl =
std::optional<PDUSessionResourceListCxtRelCpl>{
m_pduSessionResourceListCxtRelCpl};
} else {
Logger::ngap().error(
"Decode NGAP PDUSessionResourceListCxtRelCpl IE error");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment