fix: 删除未使用的函数修复golangci-lint错误
This commit is contained in:
@@ -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() {
|
||||
r.outputMutex.Lock()
|
||||
defer r.outputMutex.Unlock()
|
||||
|
||||
@@ -72,8 +72,3 @@ func (r databaseSQLLogRepository) FindOutTimeLog(c context.Context, dayLimit int
|
||||
err = r.GetDB(c).Where("created < ?", limitTime).Find(&o).Error
|
||||
return
|
||||
}
|
||||
|
||||
func (r databaseSQLLogRepository) Count(c context.Context) (total int64, err error) {
|
||||
err = r.GetDB(c).Model(&model.DatabaseSQLLog{}).Count(&total).Error
|
||||
return
|
||||
}
|
||||
|
||||
@@ -52,8 +52,3 @@ func (r filesystemLogRepository) FindOutTimeLog(c context.Context, dayLimit int)
|
||||
err = r.GetDB(c).Where("created < ?", limitTime).Find(&o).Error
|
||||
return
|
||||
}
|
||||
|
||||
func (r filesystemLogRepository) Count(c context.Context) (total int64, err error) {
|
||||
err = r.GetDB(c).Model(&model.FilesystemLog{}).Count(&total).Error
|
||||
return
|
||||
}
|
||||
|
||||
@@ -67,8 +67,3 @@ func (r operationLogRepository) FindOutTimeLog(c context.Context, dayLimit int)
|
||||
err = r.GetDB(c).Where("created < ?", limitTime).Find(&o).Error
|
||||
return
|
||||
}
|
||||
|
||||
func (r operationLogRepository) Count(c context.Context) (total int64, err error) {
|
||||
err = r.GetDB(c).Model(&model.OperationLog{}).Count(&total).Error
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user