diff options
author | Reto Brunner <reto@labrat.space> | 2020-05-09 11:50:30 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-05-11 09:47:33 -0400 |
commit | 381c1fc05f6de95accbb520769d0cc9196955cf4 (patch) | |
tree | 562c004d3153959995aaeb85660f4ead9b4e15f5 /commands/msg/utils.go | |
parent | c5fdefe7afdc69fc4eefd1ccd702a60b39fc6cb9 (diff) | |
download | aerc-381c1fc05f6de95accbb520769d0cc9196955cf4.tar.gz |
commands/helper: remove duplicated method
Diffstat (limited to 'commands/msg/utils.go')
-rw-r--r-- | commands/msg/utils.go | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/commands/msg/utils.go b/commands/msg/utils.go index 30a4394b..ae255351 100644 --- a/commands/msg/utils.go +++ b/commands/msg/utils.go @@ -17,7 +17,7 @@ func newHelper(aerc *widgets.Aerc) *helper { return &helper{aerc.SelectedTab().(widgets.ProvidesMessages)} } -func (h *helper) uids() ([]uint32, error) { +func (h *helper) markedOrSelectedUids() ([]uint32, error) { msgs, err := commands.MarkedOrSelected(h.msgProvider) if err != nil { return nil, err @@ -45,11 +45,3 @@ func (h *helper) account() (*widgets.AccountView, error) { func (h *helper) messages() ([]*models.MessageInfo, error) { return commands.MarkedOrSelected(h.msgProvider) } - -func (h *helper) messageUids() ([]uint32, error) { - msgs, err := h.messages() - if err != nil { - return nil, err - } - return commands.UidsFromMessageInfos(msgs), nil -} |