summaryrefslogtreecommitdiffstats
path: root/pkg/gui/context/branches_context.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/context/branches_context.go')
-rw-r--r--pkg/gui/context/branches_context.go19
1 files changed, 2 insertions, 17 deletions
diff --git a/pkg/gui/context/branches_context.go b/pkg/gui/context/branches_context.go
index 302f0c1d9..e64a83137 100644
--- a/pkg/gui/context/branches_context.go
+++ b/pkg/gui/context/branches_context.go
@@ -57,21 +57,6 @@ func (self *BranchesContext) GetSelectedItemId() string {
return item.ID()
}
-func (self *BranchesContext) GetSelectedRefName() string {
- item := self.GetSelected()
- if item == nil {
- return ""
- }
-
- return item.RefName()
-}
-
-func (self *BranchesContext) GetSelectedDescription() string {
- item := self.GetSelected()
-
- if item == nil {
- return ""
- }
-
- return item.Description()
+func (self *BranchesContext) GetSelectedRef() types.Ref {
+ return self.GetSelected()
}