Skip to content

Commit

Permalink
[EventDispatcher] Remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed May 26, 2011
1 parent 9816b6a commit 000229d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Symfony/Component/EventDispatcher/EventDispatcher.php
Expand Up @@ -106,9 +106,6 @@ public function addListener($eventNames, $listener, $priority = 0)
{
foreach ((array) $eventNames as $eventName) {
if (!isset($this->listeners[$eventName][$priority])) {
if (!isset($this->listeners[$eventName])) {
$this->listeners[$eventName] = array();
}
$this->listeners[$eventName][$priority] = new \SplObjectStorage();
}

Expand Down

0 comments on commit 000229d

Please sign in to comment.