cleanup: remove Clear for fake job controller

This commit is contained in:
Paco Xu 2023-02-22 17:17:47 +08:00
parent 1bafca3099
commit 37aff025ff

View File

@ -187,11 +187,3 @@ func (f *fakeJobControl) DeleteJob(namespace string, name string) error {
f.DeleteJobName = append(f.DeleteJobName, name)
return nil
}
func (f *fakeJobControl) Clear() {
f.Lock()
defer f.Unlock()
f.DeleteJobName = []string{}
f.Jobs = []batchv1.Job{}
f.Err = nil
}