Skip to content

Commit

Permalink
Remove unused code and fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
iamelisahi committed Sep 18, 2023
1 parent dcc6cf3 commit f82f6d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion internal/gmm/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,6 @@ func contextTransferFromOldAmf(ue *context.AmfUe, anType models.AccessType, oldA

func IdentityVerification(ue *context.AmfUe) bool {
return ue.Supi != "" || len(ue.Suci) != 0
// return len(ue.Suci) != 0
}

func HandleInitialRegistration(ue *context.AmfUe, anType models.AccessType) error {
Expand Down
8 changes: 4 additions & 4 deletions internal/sbi/producer/ue_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,10 @@ func ReleaseUEContextProcedure(ueContextID string, ueContextRelease models.UeCon

return nil
}
func HandleMobiRegUe(ue *context.AmfUe, ueContextTransferRspData *models.UeContextTransferRspData, ueContextTransferResponse *models.UeContextTransferResponse) {

func HandleMobiRegUe(ue *context.AmfUe, ueContextTransferRspData *models.UeContextTransferRspData,
ueContextTransferResponse *models.UeContextTransferResponse,
) {
ueContextTransferRspData.UeRadioCapability = &models.N2InfoContent{
NgapMessageType: 0,
NgapIeType: models.NgapIeType_UE_RADIO_CAPABILITY,
Expand Down Expand Up @@ -391,7 +394,6 @@ func buildUEContextModel(ue *context.AmfUe, Reason models.TransferReason) *model
ueContext.MmContextList = append(ueContext.MmContextList, mmContext)
}
if Reason == models.TransferReason_MOBI_REG_UE_VALIDATED || Reason == models.TransferReason_MOBI_REG {

sessionContextList := &ueContext.SessionContextList
ue.SmContextList.Range(func(key, value interface{}) bool {
smContext := value.(*context.SmContext)
Expand All @@ -409,9 +411,7 @@ func buildUEContextModel(ue *context.AmfUe, Reason models.TransferReason) *model
*sessionContextList = append(*sessionContextList, pduSessionContext)
return true
})

}

if ue.Gpsi != "" {
ueContext.GpsiList = append(ueContext.GpsiList, ue.Gpsi)
}
Expand Down

0 comments on commit f82f6d6

Please sign in to comment.