aboutsummaryrefslogtreecommitdiff
path: root/commands/account/next-result.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/account/next-result.go')
-rw-r--r--commands/account/next-result.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/commands/account/next-result.go b/commands/account/next-result.go
index 922f95a1..39efeeef 100644
--- a/commands/account/next-result.go
+++ b/commands/account/next-result.go
@@ -2,7 +2,6 @@ package account
import (
"errors"
- "fmt"
"git.sr.ht/~rjarry/aerc/lib/ui"
"git.sr.ht/~rjarry/aerc/widgets"
@@ -23,9 +22,6 @@ func (NextPrevResult) Complete(aerc *widgets.Aerc, args []string) []string {
}
func (NextPrevResult) Execute(aerc *widgets.Aerc, args []string) error {
- if len(args) > 1 {
- return nextPrevResultUsage(args[0])
- }
acct := aerc.SelectedAccount()
if acct == nil {
return errors.New("No account selected")
@@ -45,7 +41,3 @@ func (NextPrevResult) Execute(aerc *widgets.Aerc, args []string) error {
}
return nil
}
-
-func nextPrevResultUsage(cmd string) error {
- return fmt.Errorf("Usage: %s [<n>[%%]]", cmd)
-}