refactor: Mark unused parameters with underscore and remove unused getHighestPriorityCarrier helper

- Mark unused model parameter with underscore in generateMaintenanceRecommendations
- Mark unused context and period parameters with underscore in calculateCompetitiveIndex
- Mark unused context parameter with underscore in calculateOptimizationROI
- Mark unused data parameter with underscore in generateAnalysis
- Mark unused ratePlan and data parameters with underscore in optimizeForCompetitive
- Mark unused
This commit is contained in:
nutcas3
2026-05-03 13:52:08 +03:00
parent 384838f1df
commit 8357428400
5 changed files with 8 additions and 24 deletions
@@ -181,19 +181,3 @@ func (sa *SelectionAlgorithm) PredictPerformance(carrierID string, criteria *Sel
func (sa *SelectionAlgorithm) GetCarrierPerformance(carrierID string) *PerformanceMetrics {
return sa.mlModel.GetCarrierPerformance(carrierID)
}
// getHighestPriorityCarrier returns the carrier with the highest priority
func (sa *SelectionAlgorithm) getHighestPriorityCarrier(carriers []*Carrier) *Carrier {
if len(carriers) == 0 {
return nil
}
highestPriority := carriers[0]
for _, carrier := range carriers {
if carrier.Priority > highestPriority.Priority {
highestPriority = carrier
}
}
return highestPriority
}