mirror of
https://github.com/lukaszraczylo/lolcathost.git
synced 2026-07-11 04:51:56 +00:00
Remove unused functions.
This commit is contained in:
@@ -295,11 +295,6 @@ func (l *ListView) ViewFiltered(searchTerm string) string {
|
|||||||
return sb.String()
|
return sb.String()
|
||||||
}
|
}
|
||||||
|
|
||||||
// GroupCount returns the number of groups.
|
|
||||||
func (l *ListView) GroupCount() int {
|
|
||||||
return len(l.groupOrder)
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetGroups returns all group names.
|
// GetGroups returns all group names.
|
||||||
func (l *ListView) GetGroups() []string {
|
func (l *ListView) GetGroups() []string {
|
||||||
return l.groupOrder
|
return l.groupOrder
|
||||||
|
|||||||
@@ -146,11 +146,6 @@ func StatusText(enabled bool, pending bool, hasError bool) string {
|
|||||||
return disabledStyle.Render("○ Disabled")
|
return disabledStyle.Render("○ Disabled")
|
||||||
}
|
}
|
||||||
|
|
||||||
// HelpItem formats a help item.
|
|
||||||
func HelpItem(key, desc string) string {
|
|
||||||
return helpKeyStyle.Render(key) + " " + helpDescStyle.Render(desc)
|
|
||||||
}
|
|
||||||
|
|
||||||
// WrapHelpText wraps help text to fit within maxWidth, splitting on bullet separators.
|
// WrapHelpText wraps help text to fit within maxWidth, splitting on bullet separators.
|
||||||
// If maxWidth is 0 or negative, returns the original text.
|
// If maxWidth is 0 or negative, returns the original text.
|
||||||
func WrapHelpText(text string, maxWidth int) string {
|
func WrapHelpText(text string, maxWidth int) string {
|
||||||
|
|||||||
Reference in New Issue
Block a user