From 78bd2da3de1b6239711349041ce7375e81275213 Mon Sep 17 00:00:00 2001 From: bashbunni Date: Fri, 10 Jan 2025 11:21:08 -0800 Subject: [PATCH] chore(tree): remove unused styles from ExampleLeaf_SetValue --- tree/example_test.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/tree/example_test.go b/tree/example_test.go index 796d3d0d..56a8f9bf 100644 --- a/tree/example_test.go +++ b/tree/example_test.go @@ -3,7 +3,6 @@ package tree_test import ( "fmt" - "github.com/charmbracelet/lipgloss" "github.com/charmbracelet/lipgloss/tree" "github.com/charmbracelet/x/ansi" ) @@ -69,10 +68,6 @@ func ExampleNewLeaf() { } func ExampleLeaf_SetValue() { - enumeratorStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("63")).MarginRight(1) - rootStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("35")) - itemStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("212")) - t := tree. Root("⁜ Makeup"). Child( @@ -86,10 +81,7 @@ func ExampleLeaf_SetValue() { "Mac", "Milk", ). - Enumerator(tree.RoundedEnumerator). - EnumeratorStyle(enumeratorStyle). - RootStyle(rootStyle). - ItemStyle(itemStyle) + Enumerator(tree.RoundedEnumerator) glossier := t.Children().At(0) glossier.SetValue("Il Makiage") fmt.Println(ansi.Strip(t.String()))