remove commented code

pull/1113/head
akash-sachan 2023-05-11 18:03:24 +05:30
parent 2cd0fd85f8
commit ad4c02858c
1 changed files with 0 additions and 7 deletions

View File

@ -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