refactor: 删除更多未使用的死代码

- parse.go: 删除 RemoveDuplicate 函数及其测试
- parsers.go: 删除 excludeHosts, removeDuplicates 别名函数
- 更新测试使用真正的函数名
This commit is contained in:
ZacharyZcR
2026-01-21 23:43:07 +08:00
parent f18b51ca92
commit be76e272a5
4 changed files with 9 additions and 415 deletions
-12
View File
@@ -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)
}