mirror of
https://github.com/charmbracelet/gum
synced 2024-06-01 13:22:26 +02:00
removed unused function
This commit is contained in:
parent
8102a3d10a
commit
39a8c1705b
|
@ -21,16 +21,3 @@ func LipglossLengthPadding(s string, style lipgloss.Style) (int, int) {
|
|||
after := len(render) - len(s) - before
|
||||
return before, after
|
||||
}
|
||||
|
||||
// UniqueStrings returns a list of unique strings given a list of strings.
|
||||
func UniqueStrings(strings []string) []string {
|
||||
keys := make(map[string]bool)
|
||||
var list []string
|
||||
for _, s := range strings {
|
||||
if _, uniq := keys[s]; !uniq {
|
||||
keys[s] = true
|
||||
list = append(list, s)
|
||||
}
|
||||
}
|
||||
return list
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue