mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-09-14 14:06:44 +08:00
cleanup: 移除空的SyncToCore函数,消除死代码
清理内容: - 删除空实现的SyncToCore函数及其调用 - 移除flag.go和parse.go中的无用同步调用 - 简化初始化流程,去除不必要的抽象层 代码健康改进: - 减少3处死代码调用和1个空函数定义 - 符合Linus'删除代码比写代码更重要'原则 - 保持config包的合理架构:Constants→Config→Globals单向流 验证:编译通过,功能正常
This commit is contained in:
parent
d73456dac0
commit
72b44429ba
@ -240,9 +240,6 @@ func Flag(Info *HostInfo) {
|
||||
// 更新进度条显示状态
|
||||
ShowProgress = !DisableProgress
|
||||
|
||||
// 同步配置到core包
|
||||
SyncToCore()
|
||||
|
||||
// 如果显示帮助或者没有提供目标,显示帮助信息并退出
|
||||
if showHelp || shouldShowHelp(Info) {
|
||||
flag.Usage()
|
||||
|
@ -171,9 +171,5 @@ const (
|
||||
LogLevelBaseInfoSuccess = "base,info,success"
|
||||
)
|
||||
|
||||
// SyncToCore 同步配置到core包 - 简化实现
|
||||
func SyncToCore() {
|
||||
// 简化实现,暂时为空
|
||||
}
|
||||
|
||||
// LogWithProgress 已在progressmanager.go中定义,此处不重复
|
@ -146,9 +146,6 @@ func Parse(Info *HostInfo) error {
|
||||
// 显示解析结果摘要
|
||||
showParseSummary(result.Config)
|
||||
|
||||
// 同步配置到core包
|
||||
SyncToCore()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user