瀏覽代碼

Removes unused variables

Ask Solem 11 年之前
父節點
當前提交
4ac4f00bfa
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      celery/worker/loops.py

+ 0 - 2
celery/worker/loops.py

@@ -26,11 +26,9 @@ def asynloop(obj, connection, consumer, blueprint, hub, qos,
     """Non-blocking event loop consuming messages until connection is lost,
     """Non-blocking event loop consuming messages until connection is lost,
     or shutdown is requested."""
     or shutdown is requested."""
     update_qos = qos.update
     update_qos = qos.update
-    readers, writers = hub.readers, hub.writers
     hbtick = connection.heartbeat_check
     hbtick = connection.heartbeat_check
     errors = connection.connection_errors
     errors = connection.connection_errors
     heartbeat = connection.get_heartbeat_interval()  # negotiated
     heartbeat = connection.get_heartbeat_interval()  # negotiated
-    hub_add, hub_remove = hub.add, hub.remove
 
 
     on_task_received = obj.create_task_handler()
     on_task_received = obj.create_task_handler()