diff --git a/handlers/incident.go b/handlers/incident.go index 32898af7..1b478dbb 100644 --- a/handlers/incident.go +++ b/handlers/incident.go @@ -73,7 +73,6 @@ func getVisibleIncidentsOfService(service *services.Service) []incidents.Inciden } else if checkResolvedVisibility(incident.Updates) { incidentVar := *incident sortUpdates(incidentVar.Updates) - //reverse(incidentVar.Updates) visibleIncidents = append(visibleIncidents, incidentVar) visibleIncidentIds = append(visibleIncidentIds, incident.Id) } @@ -88,12 +87,6 @@ func sortUpdates(updates []*incidents.IncidentUpdate) { }) } -/*func reverse(incidents []*incidents.IncidentUpdate) { - for i, j := 0, len(incidents)-1; i < j; i, j = i+1, j-1 { - incidents[i], incidents[j] = incidents[j], incidents[i] - } -}*/ - func hasZeroUpdates(Updates []*incidents.IncidentUpdate) bool { if len(Updates) == 0 { return true