Browse code

removed dead code

Fabien Potencier authored on 12/03/2019 09:36:40
Showing 1 changed files
... ...
@@ -40,10 +40,6 @@ class NodeTraverser
40 40
 
41 41
     public function addVisitor(NodeVisitorInterface $visitor)
42 42
     {
43
-        if (!isset($this->visitors[$visitor->getPriority()])) {
44
-            $this->visitors[$visitor->getPriority()] = [];
45
-        }
46
-
47 43
         $this->visitors[$visitor->getPriority()][] = $visitor;
48 44
     }
49 45