From ad4c02858c8e55d2c32af232d08f81fbeeb44280 Mon Sep 17 00:00:00 2001 From: akash-sachan Date: Thu, 11 May 2023 18:03:24 +0530 Subject: [PATCH] remove commented code --- handlers/incident.go | 7 ------- 1 file changed, 7 deletions(-) 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