Skip to content

Commit

Permalink
fix: unused codes
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcat-118 committed May 25, 2024
1 parent 8b41b6f commit 47b9b26
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 3 additions & 0 deletions internal/ngap/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -1756,6 +1756,7 @@ func HandlePDUSessionResourceModifyRequest(amf *context.TNGFAMF, message *ngapTy
// ngap_message.SendPDUSessionResourceModifyResponse(amf, tngfUe, responseList, failedListModRes, nil)
}

// temporarily unused function
// nolint
func handlePDUSessionResourceModifyRequestTransfer(
pduSession *context.PDUSession, transfer ngapType.PDUSessionResourceModifyRequestTransfer) (
Expand Down Expand Up @@ -2717,6 +2718,7 @@ func buildCause(present int, value aper.Enumerated) (cause *ngapType.Cause) {
return
}

// temporarily unused function
// nolint
func printAndGetCause(cause *ngapType.Cause) (present int, value aper.Enumerated) {
present = cause.Present
Expand Down Expand Up @@ -2775,6 +2777,7 @@ func printCriticalityDiagnostics(criticalityDiagnostics *ngapType.CriticalityDia
}
}

// temporarily unused function
// nolint
func getPDUSessionResourceReleaseResponseTransfer() []byte {
data := ngapType.PDUSessionResourceReleaseResponseTransfer{}
Expand Down
3 changes: 0 additions & 3 deletions pkg/radius/handler/3gpp_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,6 @@ func UnmarshalEAP5GData(codedData []byte) (
if len(parameterValue) < int(parameterLength) {
return 0, nil, nil, errors.New("Error formatting")
}
// else {
// parameterValue = parameterValue[:parameterLength]
// }
} else {
radiusLog.Warn("AN-Parameter selected NID field empty")
}
Expand Down
4 changes: 1 addition & 3 deletions pkg/radius/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ func Run() error {
return errors.New("Radius service run failed")
}

// // Listen and serve
// var errChan chan error

// Listen and serve
// Port 1812
errChan := make(chan error)
go listenAndServe(udpAddrPort1812, errChan)
Expand Down

0 comments on commit 47b9b26

Please sign in to comment.