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() {}) }