Skip to content

Commit

Permalink
removing unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
igorlombacx committed Aug 4, 2023
1 parent ab1653f commit 01d7f18
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions internal/wrappers/results-summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,6 @@ func (r *ResultSummary) HasAPISecurity() bool {
return r.HasEngine(params.APISecType)
}

func (r *ResultSummary) getRiskFromAPISecurity(origin string) *riskDistribution {
for _, risk := range r.APISecurity.RiskDistribution {
if strings.EqualFold(risk.Origin, origin) {
return &risk
}
}
return nil
}

func (r *ResultSummary) HasPolicies() bool {
return r.Policies != nil && len(r.Policies.Polices) > 0
}
Expand Down

0 comments on commit 01d7f18

Please sign in to comment.