removed unused function

This commit is contained in:
Mikael Fangel 2023-04-04 22:50:09 +02:00 committed by Maas Lalani
parent 8102a3d10a
commit 39a8c1705b
No known key found for this signature in database
GPG key ID: 5A6ED5CBF1A0A000

View file

@ -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
}