Got rid of 2 dead functions
This commit is contained in:
@@ -241,10 +241,6 @@ func (f *form) focusOnly(i int) {
|
|||||||
// error inline without closing the form.
|
// error inline without closing the form.
|
||||||
type formSubmitErr string
|
type formSubmitErr string
|
||||||
|
|
||||||
func submitErr(err error) tea.Cmd {
|
|
||||||
return func() tea.Msg { return formSubmitErr(err.Error()) }
|
|
||||||
}
|
|
||||||
|
|
||||||
// =============================================================
|
// =============================================================
|
||||||
// Specific forms.
|
// Specific forms.
|
||||||
// =============================================================
|
// =============================================================
|
||||||
|
|||||||
@@ -73,9 +73,3 @@ func renderState(s string) string {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func renderLive(live bool) string {
|
|
||||||
if live {
|
|
||||||
return stateUpStyle.Render("● live")
|
|
||||||
}
|
|
||||||
return stateDownStyle.Render("● dead")
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user