mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-11-22 03:48:48 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user