aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2022-05-03 14:18:36 +0200
committerDmitry Vyukov <dvyukov@google.com>2022-05-03 14:52:52 +0200
commit177f4c91a2a26dc9943321c8d3cace71ee94d740 (patch)
tree226bea0aeb6aeec799e23bbc4bd38cd47ae56766
parent76133fa61c38f5d8438a67be1372b75677a042f0 (diff)
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.
-rw-r--r--dashboard/app/main.go8
1 files changed, 0 insertions, 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 {