fix: 删除未使用的函数修复golangci-lint错误

This commit is contained in:
2026-04-19 07:44:06 +08:00
parent 1f7c491048
commit b7929d6ae7
4 changed files with 0 additions and 23 deletions
-8
View File
@@ -124,14 +124,6 @@ func (r *TermHandler) collectOutput(output string) {
} }
} }
func (r *TermHandler) getAndClearOutput() string {
r.outputMutex.Lock()
defer r.outputMutex.Unlock()
output := r.outputBuf.String()
r.outputBuf.Reset()
return output
}
func (r *TermHandler) saveLastCommandOutput() { func (r *TermHandler) saveLastCommandOutput() {
r.outputMutex.Lock() r.outputMutex.Lock()
defer r.outputMutex.Unlock() defer r.outputMutex.Unlock()
-5
View File
@@ -72,8 +72,3 @@ func (r databaseSQLLogRepository) FindOutTimeLog(c context.Context, dayLimit int
err = r.GetDB(c).Where("created < ?", limitTime).Find(&o).Error err = r.GetDB(c).Where("created < ?", limitTime).Find(&o).Error
return return
} }
func (r databaseSQLLogRepository) Count(c context.Context) (total int64, err error) {
err = r.GetDB(c).Model(&model.DatabaseSQLLog{}).Count(&total).Error
return
}
-5
View File
@@ -52,8 +52,3 @@ func (r filesystemLogRepository) FindOutTimeLog(c context.Context, dayLimit int)
err = r.GetDB(c).Where("created < ?", limitTime).Find(&o).Error err = r.GetDB(c).Where("created < ?", limitTime).Find(&o).Error
return return
} }
func (r filesystemLogRepository) Count(c context.Context) (total int64, err error) {
err = r.GetDB(c).Model(&model.FilesystemLog{}).Count(&total).Error
return
}
-5
View File
@@ -67,8 +67,3 @@ func (r operationLogRepository) FindOutTimeLog(c context.Context, dayLimit int)
err = r.GetDB(c).Where("created < ?", limitTime).Find(&o).Error err = r.GetDB(c).Where("created < ?", limitTime).Find(&o).Error
return return
} }
func (r operationLogRepository) Count(c context.Context) (total int64, err error) {
err = r.GetDB(c).Model(&model.OperationLog{}).Count(&total).Error
return
}