mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 12:55:47 +02:00
Remove dead function
This commit is contained in:
parent
0a410141ae
commit
e874f94cf8
1 changed files with 0 additions and 15 deletions
|
@ -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() {})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue