mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-26 21:21:53 +08:00
refactor: 删除更多未使用的死代码
- parse.go: 删除 RemoveDuplicate 函数及其测试 - parsers.go: 删除 excludeHosts, removeDuplicates 别名函数 - 更新测试使用真正的函数名
This commit is contained in:
@@ -487,15 +487,3 @@ func removeDuplicatePorts(slice []int) []int {
|
||||
}
|
||||
|
||||
// =============================================================================
|
||||
// 导出别名(供测试使用)
|
||||
// =============================================================================
|
||||
|
||||
// excludeHosts 是 excludeFromList 的别名(供测试兼容)
|
||||
func excludeHosts(hosts, excludeList []string) []string {
|
||||
return excludeFromList(hosts, excludeList)
|
||||
}
|
||||
|
||||
// removeDuplicates 是 removeDuplicateStrings 的别名(供测试兼容)
|
||||
func removeDuplicates(slice []string) []string {
|
||||
return removeDuplicateStrings(slice)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user