浏览代码

Cleaned up unused code in Symfony\Component\EventDispatcher\EventDispatcher::getListeners()

Robert Campbell 14 年之前
父节点
当前提交
72d71b52f2
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      src/Symfony/Component/EventDispatcher/EventDispatcher.php

+ 0 - 4
src/Symfony/Component/EventDispatcher/EventDispatcher.php

@@ -76,10 +76,6 @@ class EventDispatcher implements EventDispatcherInterface
             if (!isset($this->sorted[$eventName])) {
             if (!isset($this->sorted[$eventName])) {
                 $this->sortListeners($eventName);
                 $this->sortListeners($eventName);
             }
             }
-
-            if ($this->sorted[$eventName]) {
-                $sorted[$eventName] = $this->sorted[$eventName];
-            }
         }
         }
 
 
         return $this->sorted;
         return $this->sorted;