Selaa lähdekoodia

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

Robert Campbell 14 vuotta sitten
vanhempi
commit
72d71b52f2
1 muutettua tiedostoa jossa 0 lisäystä ja 4 poistoa
  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;