diff options
author | Daniel Martí <mvdan@mvdan.cc> | 2018-03-01 17:03:32 +0000 |
---|---|---|
committer | Daniel Martí <mvdan@mvdan.cc> | 2018-03-01 17:12:58 +0000 |
commit | ede92fa7ff9a6c5a61245e2ebeaa4d3929a37ce8 (patch) | |
tree | e99cf26f0a460240477bb52bdae1b5ea0832c3c8 /worktree.go | |
parent | 65886144d1e19b563c4e8854ba1cd0d532fea532 (diff) | |
download | go-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.go | 4 |
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" |