1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-04-23 12:18:51 +02:00

Remove dead function

This commit is contained in:
Jesse Duffield 2023-07-27 19:16:14 +10:00
parent 0a410141ae
commit e874f94cf8

View File

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