From 47bec44cc2d85a07e7b707bc345e5ef947b59401 Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Thu, 7 Nov 2024 11:36:43 +0100 Subject: tools/syz-cover: remove heatmap tool I don't see any plans to use it. --- pkg/cover/heatmap.go | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'pkg') diff --git a/pkg/cover/heatmap.go b/pkg/cover/heatmap.go index 3f860ac07..64568404d 100644 --- a/pkg/cover/heatmap.go +++ b/pkg/cover/heatmap.go @@ -9,7 +9,6 @@ import ( _ "embed" "fmt" "html/template" - "io" "sort" "strings" @@ -222,32 +221,6 @@ type StyleBodyJS struct { JS template.HTML } -// nolint: dupl -func DoDirHeatMap(w io.Writer, projectID, ns string, periods []coveragedb.TimePeriod) error { - style, body, js, err := DoHeatMapStyleBodyJS(context.Background(), projectID, ns, "", periods) - if err != nil { - return fmt.Errorf("failed to DoHeatMapStyleBodyJS() %w", err) - } - return heatmapTemplate.Execute(w, &StyleBodyJS{ - Style: style, - Body: body, - JS: js, - }) -} - -// nolint: dupl -func DoSubsystemsHeatMap(w io.Writer, projectID, ns string, periods []coveragedb.TimePeriod) error { - style, body, js, err := DoSubsystemsHeatMapStyleBodyJS(context.Background(), projectID, ns, "", periods) - if err != nil { - return fmt.Errorf("failed to DoSubsystemsHeatMapStyleBodyJS() %w", err) - } - return heatmapTemplate.Execute(w, &StyleBodyJS{ - Style: style, - Body: body, - JS: js, - }) -} - func stylesBodyJSTemplate(templData *templateHeatmap, ) (template.CSS, template.HTML, template.HTML, error) { var styles, body, js bytes.Buffer -- cgit mrf-deployment