From 0ad4a0db098bf4654315a664794b13aebcccef7b Mon Sep 17 00:00:00 2001 From: Blake Bourque Date: Tue, 16 Feb 2021 23:02:43 -0500 Subject: [PATCH] cleanup --- tools/generate.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tools/generate.go b/tools/generate.go index fe8e2a1..b1609fd 100644 --- a/tools/generate.go +++ b/tools/generate.go @@ -205,7 +205,6 @@ func parseSegs(sourcePath string) ([]*Seg, string) { func chromaFormat(code, filePath string) string { - lexer := lexers.Get(filePath) if lexer == nil { lexer = lexers.Fallback @@ -217,8 +216,6 @@ func chromaFormat(code, filePath string) string { lexer = chroma.Coalesce(lexer) - fmt.Printf("%s - %s\n", filePath, lexer.Config().Name) - style := styles.Get("swapoff") if style == nil { style = styles.Fallback @@ -230,7 +227,6 @@ func chromaFormat(code, filePath string) string { err = formatter.Format(buf, style, iterator) check(err) return buf.String() - } func parseAndRenderSegs(sourcePath string) ([]*Seg, string) {