on main help sign in
fix: remove unused func
0be7a7bCarlos Alexandro Becker
internal/highlight/highlight.go−6
@@ -2,7 +2,6 @@ package highlight
2
2
3import (
3import (
4 "bytes"
4 "bytes"
5− "fmt"
6 "image/color"
5 "image/color"
7
6
8 "github.com/alecthomas/chroma/v2"
7 "github.com/alecthomas/chroma/v2"
@@ -53,8 +52,3 @@ func SyntaxHighlight(source, fileName string, bg color.Color) (string, error) {
53 err = f.Format(&buf, s, it)
52 err = f.Format(&buf, s, it)
54 return buf.String(), err
53 return buf.String(), err
55}
54}
56−
57−func getColor(c color.Color) string {
58− rgba := color.RGBAModel.Convert(c).(color.RGBA)
59− return fmt.Sprintf("#%02x%02x%02x", rgba.R, rgba.G, rgba.B)
60−}