From ede92fa7ff9a6c5a61245e2ebeaa4d3929a37ce8 Mon Sep 17 00:00:00 2001 From: Daniel Martí Date: Thu, 1 Mar 2018 17:03:32 +0000 Subject: all: remove some unused code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Martí --- worktree.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'worktree.go') 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" -- cgit