chore(tui): remove dead formatPreviewEntity function

This commit is contained in:
2026-05-19 21:01:26 -04:00
parent 778fab3edd
commit 39975a6787
-14
View File
@@ -1,7 +1,6 @@
package tui package tui
import ( import (
"fmt"
"strings" "strings"
"github.com/charmbracelet/bubbles/textinput" "github.com/charmbracelet/bubbles/textinput"
@@ -175,16 +174,3 @@ func glyphForParsed(glyph string) string {
func drawerLines() int { func drawerLines() int {
return 3 return 3
} }
// formatPreviewEntity builds a preview string showing how the entity will appear
func formatPreviewEntity(p *parse.Result) string {
if p == nil {
return ""
}
glyph := glyphForParsed(p.Glyph)
body := p.Body
if p.Title != nil {
body = *p.Title
}
return fmt.Sprintf("%s %s", glyph, body)
}