mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-09-14 14:06:44 +08:00
![]() 移除项目中无法访问的死代码: - 移除 Scanner.go 中的 logScanPlan 函数 - 移除 match_engine.go 中的 containsPort 和 IsPortMatch 函数 - 清理相关的未使用导入:strings、strconv 优化效果: - 减少约60行无用代码 - 消除编译器 unreachable func 警告 - 提升代码可维护性和可读性 - 优化二进制文件大小 这些函数在参数精简过程中失去了调用者,成为死代码。 移除后核心功能保持完整,通过完整测试验证。 |
||
---|---|---|
.. | ||
encoding_utils.go | ||
match_engine.go | ||
nmap-service-probes.txt | ||
probe_parser.go | ||
scanner_core.go | ||
types.go | ||
version_parser.go |