mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-13 12:52:44 +08:00
perf: 删除无用函数
This commit is contained in:
parent
e58a48ba9b
commit
2b4a4024b8
@ -3,7 +3,6 @@ package Core
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/shadow1ng/fscan/Common"
|
||||
"sort"
|
||||
"strings"
|
||||
)
|
||||
|
||||
@ -57,15 +56,3 @@ func validateScanPlugins() error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// 根据类型获取插件列表
|
||||
func GetPluginsByType(typeName string) []string {
|
||||
var result []string
|
||||
for name, plugin := range Common.PluginManager {
|
||||
if plugin.HasType(typeName) {
|
||||
result = append(result, name)
|
||||
}
|
||||
}
|
||||
sort.Strings(result)
|
||||
return result
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user