aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/dirlist.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/dirlist.go')
-rw-r--r--widgets/dirlist.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/widgets/dirlist.go b/widgets/dirlist.go
index 984fc01c..e50567ea 100644
--- a/widgets/dirlist.go
+++ b/widgets/dirlist.go
@@ -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 {