diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-07-27 19:16:14 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-07-30 18:35:23 +1000 |
commit | e874f94cf8fb8928110a0165852a8967fa823a5c (patch) | |
tree | a4591c63aba3a95fcc8542b0628a684b9c075408 /pkg/gui | |
parent | 0a410141ae9aa1fdf857889c55137f957ed87263 (diff) |
Remove dead function
Diffstat (limited to 'pkg/gui')
-rw-r--r-- | pkg/gui/controllers/branches_controller.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/pkg/gui/controllers/branches_controller.go b/pkg/gui/controllers/branches_controller.go index 4415fb012..c5a5c1c78 100644 --- a/pkg/gui/controllers/branches_controller.go +++ b/pkg/gui/controllers/branches_controller.go @@ -3,7 +3,6 @@ package controllers import ( "errors" "fmt" - "os" "strings" "github.com/jesseduffield/gocui" @@ -467,20 +466,6 @@ func (self *BranchesController) fastForward(branch *models.Branch) error { }) } -func (self *BranchesController) worktreePathForBranch(branch *models.Branch) string { - worktreeForRef, ok := self.worktreeForBranch(branch) - if ok { - return worktreeForRef.Path - } - - dir, err := os.Getwd() - if err != nil { - // swallow for now - return "" - } - return dir -} - func (self *BranchesController) createTag(branch *models.Branch) error { return self.c.Helpers().Tags.OpenCreateTagPrompt(branch.FullRefName(), func() {}) } |