瀏覽代碼

merged branch jayrulez/master (PR #1996)

Commits
-------

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

Discussion
----------

Cleaned up unused code

Cleaned up unused code in Symfony\Component\EventDispatcher\EventDispatcher::getListeners()
Fabien Potencier 13 年之前
父節點
當前提交
8c5b6aab89
共有 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])) {
                 $this->sortListeners($eventName);
             }
-
-            if ($this->sorted[$eventName]) {
-                $sorted[$eventName] = $this->sorted[$eventName];
-            }
         }
 
         return $this->sorted;