Skip to content

Commit

Permalink
Remove unused comments
Browse files Browse the repository at this point in the history
  • Loading branch information
andy89923 committed Feb 26, 2024
1 parent 27db307 commit c38f762
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
11 changes: 0 additions & 11 deletions internal/context/datapath.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,17 +409,6 @@ func (datapath *DataPath) addUrrToPath(smContext *SMContext) {
MAQEUrrId = smContext.UrrIdMap[N9N6_MAQE_URR]
}

// if curDataPathNode.IsANUPF() {
// MBQEUrrId, err = curDataPathNode.UPF.urrIDGenerator.Allocate()
// if err != nil {
// logger.CtxLog.Warnf("MBQE URR ID allocate error: %v\n", err)
// }
// MAQEUrrId, err = curDataPathNode.UPF.urrIDGenerator.Allocate()
// if err != nil {
// logger.CtxLog.Warnf("MAQE URR ID allocate error: %v\n", err)
// }
// }

curDataPathNode.addUrrToNode(smContext, MBQEUrrId, true, true)
curDataPathNode.addUrrToNode(smContext, MAQEUrrId, true, false)
}
Expand Down
11 changes: 0 additions & 11 deletions internal/context/sm_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,6 @@ type SMContext struct {
// However, a rating group may map to more than one urr
// e.g. In UL CL case, the rating group for recoreding PDU Session volume may map to two URR
// one is for PSA 1, the other is for PSA 2.
// Note: the premise is that urrid in a pdu session is unique, urr in same or different upf cannot have the same urrid
// TODO: curerrently have not tested the case where multiple urr share the same rating group
ChargingInfo map[uint32]*ChargingInfo
// NAS
Pti uint8
Expand Down Expand Up @@ -913,15 +911,6 @@ func (smContext *SMContext) IsAllowedPDUSessionType(requestedPDUSessionType uint
return nil
}

// func (smContext *SMContext) GetUrrTypeById(urrId uint32) (UrrType, error) {
// for urrType, id := range smContext.UrrIdMap {
// if id == urrId {
// return urrType, nil
// }
// }
// return NOT_FOUND_URR, fmt.Errorf("Urr type not found ")
// }

func (smContext *SMContext) StopT3591() {
if smContext.T3591 != nil {
smContext.T3591.Stop()
Expand Down

0 comments on commit c38f762

Please sign in to comment.