aboutsummaryrefslogtreecommitdiffstats
path: root/worktree.go
diff options
context:
space:
mode:
authorDaniel Martí <mvdan@mvdan.cc>2018-03-01 17:03:32 +0000
committerDaniel Martí <mvdan@mvdan.cc>2018-03-01 17:12:58 +0000
commitede92fa7ff9a6c5a61245e2ebeaa4d3929a37ce8 (patch)
treee99cf26f0a460240477bb52bdae1b5ea0832c3c8 /worktree.go
parent65886144d1e19b563c4e8854ba1cd0d532fea532 (diff)
downloadgo-git-ede92fa7ff9a6c5a61245e2ebeaa4d3929a37ce8.tar.gz
all: remove some unused code
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Diffstat (limited to 'worktree.go')
-rw-r--r--worktree.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/worktree.go b/worktree.go
index a23397e..394dce4 100644
--- a/worktree.go
+++ b/worktree.go
@@ -607,10 +607,6 @@ func (w *Worktree) getTreeFromCommitHash(commit plumbing.Hash) (*object.Tree, er
return c.Tree()
}
-func (w *Worktree) initializeIndex() error {
- return w.r.Storer.SetIndex(&index.Index{Version: 2})
-}
-
var fillSystemInfo func(e *index.Entry, sys interface{})
const gitmodulesFile = ".gitmodules"