mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-11 10:36:31 +00:00
Clean up unused variables and functions (#5818)
Signed-off-by: Fish-pro <zechun.chen@daocloud.io>
This commit is contained in:
@@ -144,18 +144,3 @@ func (c *genericController) processNextWorkItem() bool {
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
func (c *genericController) enqueue(obj interface{}) {
|
||||
key, err := cache.MetaNamespaceKeyFunc(obj)
|
||||
if err != nil {
|
||||
c.logger.WithError(errors.WithStack(err)).
|
||||
Error("Error creating queue key, item not added to queue")
|
||||
return
|
||||
}
|
||||
|
||||
c.queue.Add(key)
|
||||
}
|
||||
|
||||
func (c *genericController) enqueueSecond(_, obj interface{}) {
|
||||
c.enqueue(obj)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user