lint: remove unused structs and functions (unused)
Signed-off-by: Moritz Poldrack <moritz@poldrack.dev> Acked-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
parent
77a00de741
commit
2534612c59
|
@ -995,13 +995,6 @@ func (he *headerEditor) storeValue() {
|
|||
}
|
||||
}
|
||||
|
||||
// setValue overwrites the current value of the header editor and flushes it
|
||||
// to the underlying header
|
||||
func (he *headerEditor) setValue(val string) {
|
||||
he.input.Set(val)
|
||||
he.storeValue()
|
||||
}
|
||||
|
||||
func (he *headerEditor) Draw(ctx *ui.Context) {
|
||||
name := textproto.CanonicalMIMEHeaderKey(he.name)
|
||||
// Extra character to put a blank cell between the header and the input
|
||||
|
|
|
@ -16,7 +16,6 @@ import (
|
|||
"git.sr.ht/~rjarry/aerc/config"
|
||||
"git.sr.ht/~rjarry/aerc/lib"
|
||||
"git.sr.ht/~rjarry/aerc/lib/format"
|
||||
libsort "git.sr.ht/~rjarry/aerc/lib/sort"
|
||||
"git.sr.ht/~rjarry/aerc/lib/ui"
|
||||
"git.sr.ht/~rjarry/aerc/logging"
|
||||
"git.sr.ht/~rjarry/aerc/models"
|
||||
|
@ -521,18 +520,6 @@ func findString(slice []string, str string) int {
|
|||
return -1
|
||||
}
|
||||
|
||||
func (dirlist *DirectoryList) getSortCriteria() []*types.SortCriterion {
|
||||
if len(dirlist.UiConfig().Sort) == 0 {
|
||||
return nil
|
||||
}
|
||||
criteria, err := libsort.GetSortCriteria(dirlist.UiConfig().Sort)
|
||||
if err != nil {
|
||||
logging.Errorf("getSortCriteria failed: %v", err)
|
||||
return nil
|
||||
}
|
||||
return criteria
|
||||
}
|
||||
|
||||
func countRUE(msgStore *lib.MessageStore) (recent, unread int) {
|
||||
for _, msg := range msgStore.Messages {
|
||||
if msg == nil {
|
||||
|
|
|
@ -5,8 +5,4 @@ package notmuch
|
|||
|
||||
type eventType interface{}
|
||||
|
||||
type event struct{}
|
||||
|
||||
type updateDirCounts struct {
|
||||
event
|
||||
}
|
||||
type updateDirCounts struct{}
|
||||
|
|
Loading…
Reference in New Issue