Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit ede92fa

Browse files
committed
all: remove some unused code
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
1 parent 6588614 commit ede92fa

File tree

5 files changed

+0
-65
lines changed

5 files changed

+0
-65
lines changed

plumbing/cache/queue.go

Lines changed: 0 additions & 46 deletions
This file was deleted.

plumbing/storer/object.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ func (iter *EncodedObjectLookupIter) Close() {
174174
// no longer needed.
175175
type EncodedObjectSliceIter struct {
176176
series []plumbing.EncodedObject
177-
pos int
178177
}
179178

180179
// NewEncodedObjectSliceIter returns an object iterator for the given slice of
@@ -218,7 +217,6 @@ func (iter *EncodedObjectSliceIter) Close() {
218217
// longer needed.
219218
type MultiEncodedObjectIter struct {
220219
iters []EncodedObjectIter
221-
pos int
222220
}
223221

224222
// NewMultiEncodedObjectIter returns an object iterator for the given slice of

plumbing/transport/server/server.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -298,17 +298,6 @@ func (s *rpSession) updateReferences(req *packp.ReferenceUpdateRequest) {
298298
}
299299
}
300300

301-
func (s *rpSession) failAtomicUpdate() (*packp.ReportStatus, error) {
302-
rs := s.reportStatus()
303-
for _, cs := range rs.CommandStatuses {
304-
if cs.Error() == nil {
305-
cs.Status = "atomic updated"
306-
}
307-
}
308-
309-
return rs, s.firstErr
310-
}
311-
312301
func (s *rpSession) writePackfile(r io.ReadCloser) error {
313302
if r == nil {
314303
return nil

storage/filesystem/internal/dotgit/dotgit.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -798,5 +798,3 @@ func isNum(b byte) bool {
798798
func isHexAlpha(b byte) bool {
799799
return b >= 'a' && b <= 'f' || b >= 'A' && b <= 'F'
800800
}
801-
802-
type refCache map[plumbing.ReferenceName]*plumbing.Reference

worktree.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -607,10 +607,6 @@ func (w *Worktree) getTreeFromCommitHash(commit plumbing.Hash) (*object.Tree, er
607607
return c.Tree()
608608
}
609609

610-
func (w *Worktree) initializeIndex() error {
611-
return w.r.Storer.SetIndex(&index.Index{Version: 2})
612-
}
613-
614610
var fillSystemInfo func(e *index.Entry, sys interface{})
615611

616612
const gitmodulesFile = ".gitmodules"

0 commit comments

Comments
 (0)