mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-26 21:21:53 +08:00
refactor: 删除 deadcode 检测出的未使用函数
- proxy/detector.go: 删除 IsSOCKS5Standard, IsProxyInitialized - findnet.go: 删除 NetworkInfo.OneLine, TreeFormat 方法 - port_scan.go: 删除 estimateScanTime 函数 - web_scanner.go: 删除 GetFingerprints 函数 - 清理相关测试代码
This commit is contained in:
@@ -83,10 +83,3 @@ func BenchmarkFailedPortCollectorAdd(b *testing.B) {
|
||||
}
|
||||
}
|
||||
|
||||
// BenchmarkEstimateScanTime 测试扫描时间估算性能
|
||||
func BenchmarkEstimateScanTime(b *testing.B) {
|
||||
b.ResetTimer()
|
||||
for i := 0; i < b.N; i++ {
|
||||
_ = estimateScanTime(10000, 600, 3)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user