summaryrefslogtreecommitdiffstats
path: root/pkg/gui/context/stash_context.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/context/stash_context.go')
-rw-r--r--pkg/gui/context/stash_context.go20
1 files changed, 2 insertions, 18 deletions
diff --git a/pkg/gui/context/stash_context.go b/pkg/gui/context/stash_context.go
index ef443846f..53d854669 100644
--- a/pkg/gui/context/stash_context.go
+++ b/pkg/gui/context/stash_context.go
@@ -61,22 +61,6 @@ func (self *StashContext) CanRebase() bool {
return false
}
-func (self *StashContext) GetSelectedRefName() string {
- item := self.GetSelected()
-
- if item == nil {
- return ""
- }
-
- return item.RefName()
-}
-
-func (self *StashContext) GetSelectedDescription() string {
- item := self.GetSelected()
-
- if item == nil {
- return ""
- }
-
- return item.Description()
+func (self *StashContext) GetSelectedRef() types.Ref {
+ return self.GetSelected()
}