Skip to content

Commit f9b264f

Browse files
committed
Remove unused count logic
1 parent 47b0add commit f9b264f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

cmd/namigo/sub/search_priv.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ type searchPortfolio struct {
6464
dns []model.DNSResult
6565
}
6666
wg *sync.WaitGroup
67-
c int
6867
}
6968

7069
// newSearchPortfolio creates a new portfolio instance.
@@ -83,7 +82,6 @@ func (p *searchPortfolio) isEmpty() bool {
8382
// run invokes a function as a goroutine and passes a WaitGroup into it.
8483
func (p *searchPortfolio) run(f func(wg *sync.WaitGroup)) {
8584
p.wg.Add(1)
86-
p.c++
8785
go f(p.wg)
8886
}
8987

@@ -92,11 +90,6 @@ func (p *searchPortfolio) wait() {
9290
p.wg.Wait()
9391
}
9492

95-
// count returns the goroutine count.
96-
func (p *searchPortfolio) count() int {
97-
return p.c
98-
}
99-
10093
// getOutputMode returns an OutputMode instance.
10194
func getOutputMode(mode string) util.OutputMode {
10295
switch mode {

0 commit comments

Comments
 (0)