aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/common.go')
-rw-r--r--widgets/common.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/widgets/common.go b/widgets/common.go
deleted file mode 100644
index f77f891c..00000000
--- a/widgets/common.go
+++ /dev/null
@@ -1,20 +0,0 @@
-package widgets
-
-import (
- "fmt"
-
- "git.sr.ht/~rjarry/aerc/lib"
- "git.sr.ht/~rjarry/aerc/models"
-)
-
-func msgInfoFromUids(store *lib.MessageStore, uids []uint32) ([]*models.MessageInfo, error) {
- infos := make([]*models.MessageInfo, len(uids))
- for i, uid := range uids {
- var ok bool
- infos[i], ok = store.Messages[uid]
- if !ok {
- return nil, fmt.Errorf("uid not found")
- }
- }
- return infos, nil
-}