diff options
| author | Taras Madan <tarasmadan@google.com> | 2024-11-07 11:36:43 +0100 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2024-11-07 12:29:21 +0000 |
| commit | 47bec44cc2d85a07e7b707bc345e5ef947b59401 (patch) | |
| tree | 7943d63996898a7deb50f13cc8f004e6a97eab13 /pkg/cover/heatmap.go | |
| parent | b727b13b371c02598242821ea230ed2e9f53e305 (diff) | |
tools/syz-cover: remove heatmap tool
I don't see any plans to use it.
Diffstat (limited to 'pkg/cover/heatmap.go')
| -rw-r--r-- | pkg/cover/heatmap.go | 27 |
1 files changed, 0 insertions, 27 deletions
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 |
