chore(gopher): remove unused lineCount variable

This commit is contained in:
2026-06-30 11:12:48 +02:00
parent e20f221ead
commit f549a862f8
-2
View File
@@ -228,7 +228,6 @@ func (p *Protocol) downloadText(ctx context.Context, reader *bufio.Reader, req *
// new one — same convention as Gemini. // new one — same convention as Gemini.
var bytesWritten int64 var bytesWritten int64
var skipped int64 var skipped int64
lineCount := 0
for { for {
select { select {
@@ -295,7 +294,6 @@ func (p *Protocol) downloadText(ctx context.Context, reader *bufio.Reader, req *
} }
bytesWritten += int64(n) bytesWritten += int64(n)
} }
lineCount++
if req.ProgressCallback != nil { if req.ProgressCallback != nil {
speed := float64(bytesWritten) / time.Since(startTime).Seconds() speed := float64(bytesWritten) / time.Since(startTime).Seconds()