Skip to content

Commit 7b12c7b

Browse files
author
jguerreiro
committed
chore(srcfingerprint): remove unused code
1 parent e03bca8 commit 7b12c7b

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

extractor.go

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,10 @@ import (
1010
log "github.com/sirupsen/logrus"
1111
"gopkg.in/src-d/go-billy.v4/helper/chroot"
1212
git "gopkg.in/src-d/go-git.v4"
13-
"gopkg.in/src-d/go-git.v4/plumbing/object"
1413
"gopkg.in/src-d/go-git.v4/storage/filesystem"
1514
)
1615

17-
// Extractor extracts commits for a given repository.
18-
type Extractor struct {
19-
iter object.CommitIter
20-
}
21-
22-
// NewExtractor creates a new Extractor.
23-
func NewExtractor(repository *git.Repository) (*Extractor, error) {
24-
iter, err := repository.CommitObjects()
25-
if err != nil {
26-
return nil, err
27-
}
28-
29-
return &Extractor{
30-
iter: iter,
31-
}, nil
32-
}
33-
34-
// ExtractNextCommit extract the next commit of the repository.
35-
// It returns an io.EOF error if there are no more commits.
36-
func (e *Extractor) ExtractNextCommit() (*object.Commit, error) {
37-
return e.iter.Next()
38-
}
39-
4016
func GetBasePathGoGitRepo(r *git.Repository) (string, error) {
41-
//
4217
// Try to grab the repository Storer
4318
s, ok := r.Storer.(*filesystem.Storage)
4419
if !ok {

0 commit comments

Comments
 (0)