From 2b4a4024b8e3073bca7cbc431a38e9dfa19fdb06 Mon Sep 17 00:00:00 2001 From: ZacharyZcR <2903735704@qq.com> Date: Mon, 5 May 2025 02:24:37 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Core/PluginUtils.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Core/PluginUtils.go b/Core/PluginUtils.go index 89cddd5..86fda2d 100644 --- a/Core/PluginUtils.go +++ b/Core/PluginUtils.go @@ -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 -}