aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorMoritz Poldrack <git@moritz.sh>2022-07-30 13:29:46 +0200
committerRobin Jarry <robin@jarry.cc>2022-08-04 21:58:00 +0200
commitc882cf9960be691fe55617b87cdfcfbabd5d5557 (patch)
tree7446d447a9992f8d761692362ebb66b5e12c1edb /widgets
parent5ca6022d007bc83daba1e7297480d37f56554455 (diff)
downloadaerc-c882cf9960be691fe55617b87cdfcfbabd5d5557.tar.gz
lint: removed unused code (deadcode, structcheck, unused)
Signed-off-by: Moritz Poldrack <moritz@poldrack.dev> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'widgets')
-rw-r--r--widgets/account-wizard.go1
-rw-r--r--widgets/common.go20
-rw-r--r--widgets/dirlist.go1
3 files changed, 0 insertions, 22 deletions
diff --git a/widgets/account-wizard.go b/widgets/account-wizard.go
index 5ed39d54..d7cda2d8 100644
--- a/widgets/account-wizard.go
+++ b/widgets/account-wizard.go
@@ -46,7 +46,6 @@ type AccountWizard struct {
steps []*ui.Grid
focus int
temporary bool
- testing bool
// CONFIGURE_BASICS
accountName *ui.TextInput
email *ui.TextInput
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
-}
diff --git a/widgets/dirlist.go b/widgets/dirlist.go
index e50567ea..df4e8192 100644
--- a/widgets/dirlist.go
+++ b/widgets/dirlist.go
@@ -59,7 +59,6 @@ type DirectoryList struct {
worker *types.Worker
skipSelect context.Context
skipSelectCancel context.CancelFunc
- connected bool
uiConf map[string]*config.UIConfig
}