Skip to content

Commit

Permalink
fix: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
andy89923 committed Sep 30, 2024
1 parent 1ac8c65 commit eb404de
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions internal/sbi/consumer/udm_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,6 @@ func (s *nudmService) GetSmData(ctx context.Context, supi string,
var client *Nudm_SubscriberDataManagement.APIClient
for _, service := range *s.consumer.Context().UDMProfile.NfServices {
if service.ServiceName == models.ServiceName_NUDM_SDM {
SDMConf := Nudm_SubscriberDataManagement.NewConfiguration()
SDMConf.SetBasePath(service.ApiPrefix)
client = s.getSubscribeDataManagementClient(service.ApiPrefix)
if client != nil {
break
Expand Down Expand Up @@ -209,8 +207,6 @@ func (s *nudmService) Subscribe(ctx context.Context, smCtx *smf_context.SMContex
var client *Nudm_SubscriberDataManagement.APIClient
for _, service := range *s.consumer.Context().UDMProfile.NfServices {
if service.ServiceName == models.ServiceName_NUDM_SDM {
SDMConf := Nudm_SubscriberDataManagement.NewConfiguration()
SDMConf.SetBasePath(service.ApiPrefix)
client = s.getSubscribeDataManagementClient(service.ApiPrefix)
if client != nil {
break
Expand Down Expand Up @@ -268,9 +264,10 @@ func (s *nudmService) UnSubscribe(smCtx *smf_context.SMContext) (
var client *Nudm_SubscriberDataManagement.APIClient
for _, service := range *s.consumer.Context().UDMProfile.NfServices {
if service.ServiceName == models.ServiceName_NUDM_SDM {
SDMConf := Nudm_SubscriberDataManagement.NewConfiguration()
SDMConf.SetBasePath(service.ApiPrefix)
client = s.getSubscribeDataManagementClient(service.ApiPrefix)
if client != nil {
break
}
}
}

Expand Down

0 comments on commit eb404de

Please sign in to comment.