Skip to content

Commit 4db0dc7

Browse files
author
jguerreiro
committed
chore(srcfingerprint): remove commented code
1 parent 347795b commit 4db0dc7

File tree

1 file changed

+2
-26
lines changed

1 file changed

+2
-26
lines changed

extractor.go

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ func (e *Extractor) ExtractNextCommit() (*object.Commit, error) {
3737
return e.iter.Next()
3838
}
3939

40-
// FastExtractor will directly extract the information without using an Analyzer
41-
// There are designed to use raw git commands to get what is needed
42-
4340
func GetBasePathGoGitRepo(r *git.Repository) (string, error) {
4441
//
4542
// Try to grab the repository Storer
@@ -57,19 +54,6 @@ func GetBasePathGoGitRepo(r *git.Repository) (string, error) {
5754
return fs.Root(), nil
5855
}
5956

60-
//type BaseGitFileIterator struct {
61-
// repository *git.Repository
62-
// filesChan chan *GitFile
63-
//}
64-
//
65-
//func (i *BaseGitFileIterator) Compute(repository *git.Repositor) error {
66-
//
67-
//}
68-
//
69-
//func (i *BaseGitFileIterator) Close() error {
70-
//
71-
//}
72-
7357
type BaseExtractor interface {
7458
Next() (interface{}, error)
7559
}
@@ -85,6 +69,8 @@ func NewFastExtractor() *FastExtractor {
8569
return &FastExtractor{make(chan *GitFile)}
8670
}
8771

72+
// FastExtractor will directly extract the information without using an Analyzer
73+
// There are designed to use raw git commands to get what is needed.
8874
type FastExtractor struct {
8975
ChanGitFiles chan *GitFile
9076
}
@@ -148,13 +134,3 @@ func (fe *FastExtractor) Run(repository *git.Repository) chan *GitFile {
148134

149135
return fe.ChanGitFiles
150136
}
151-
152-
//targetFile := fe.BaseDirStorage + "/" + "sha_files.jsonl"
153-
//log.Infof("Saving to file %s", targetFile)
154-
//dataFile, err := os.Create(targetFile)
155-
//if err != nil {
156-
// log.Error(err)
157-
//}
158-
//defer dataFile.Close()
159-
//_, err = dataFile.WriteString(out.String())
160-
//return err

0 commit comments

Comments
 (0)