diff options
Diffstat (limited to 'pkg/gui/context/remote_branches_context.go')
-rw-r--r-- | pkg/gui/context/remote_branches_context.go | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/pkg/gui/context/remote_branches_context.go b/pkg/gui/context/remote_branches_context.go index 52217ef11..affcedf97 100644 --- a/pkg/gui/context/remote_branches_context.go +++ b/pkg/gui/context/remote_branches_context.go @@ -60,21 +60,6 @@ func (self *RemoteBranchesContext) GetSelectedItemId() string { return item.ID() } -func (self *RemoteBranchesContext) GetSelectedRefName() string { - item := self.GetSelected() - if item == nil { - return "" - } - - return item.RefName() -} - -func (self *RemoteBranchesContext) GetSelectedDescription() string { - item := self.GetSelected() - - if item == nil { - return "" - } - - return item.Description() +func (self *RemoteBranchesContext) GetSelectedRef() types.Ref { + return self.GetSelected() } |