From 177f4c91a2a26dc9943321c8d3cace71ee94d740 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 3 May 2022 14:18:36 +0200 Subject: dashboard/app: remove dead code We don't show decomissioned namespaces at all now. loadManagerList checks cfg.Decommissioned and does not return them at all. --- dashboard/app/main.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/dashboard/app/main.go b/dashboard/app/main.go index 897ed3ec0..dafb5b0cf 100644 --- a/dashboard/app/main.go +++ b/dashboard/app/main.go @@ -1096,14 +1096,6 @@ func loadManagers(c context.Context, accessLevel AccessLevel, ns, manager string TotalExecs: stats.TotalExecs, TotalExecsBad: stats.TotalExecs == 0, } - if config.Namespaces[mgr.Namespace].Decommissioned { - // Don't show bold red highlight for decommissioned namespaces. - ui.Link = "" - ui.FailedBuildBugLink = "" - ui.FailedSyzBuildBugLink = "" - ui.CurrentUpTime = 0 - ui.TotalExecsBad = false - } results = append(results, ui) } sort.Slice(results, func(i, j int) bool { -- cgit mrf-deployment