From e874f94cf8fb8928110a0165852a8967fa823a5c Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Thu, 27 Jul 2023 19:16:14 +1000 Subject: [PATCH] Remove dead function --- pkg/gui/controllers/branches_controller.go | 15 --------------- 1 file changed, 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() {}) }