Clean up unused variables and functions (#5818)

Signed-off-by: Fish-pro <zechun.chen@daocloud.io>
This commit is contained in:
Fish-pro
2023-02-09 10:53:24 +08:00
committed by GitHub
parent 0be05c9bc8
commit ef05af13bf
12 changed files with 0 additions and 93 deletions
-15
View File
@@ -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)
}