Преглед на файлове

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;