From 0be7a7bbe045ef93b2404f1db6f6361f5d3c325b Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Wed, 18 Jun 2025 11:14:53 -0300 Subject: [PATCH] fix: remove unused func --- internal/highlight/highlight.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/internal/highlight/highlight.go b/internal/highlight/highlight.go index 3b9c7643cf0d6b281c5eb66523cb97ee4197faf6..c8cf833056603d18e6bd7ecac8f27a6652fdfde7 100644 --- a/internal/highlight/highlight.go +++ b/internal/highlight/highlight.go @@ -2,7 +2,6 @@ package highlight import ( "bytes" - "fmt" "image/color" "github.com/alecthomas/chroma/v2" @@ -53,8 +52,3 @@ func SyntaxHighlight(source, fileName string, bg color.Color) (string, error) { err = f.Format(&buf, s, it) return buf.String(), err } - -func getColor(c color.Color) string { - rgba := color.RGBAModel.Convert(c).(color.RGBA) - return fmt.Sprintf("#%02x%02x%02x", rgba.R, rgba.G, rgba.B) -}