Remove dead code from `Visitor.php`
The method `Visitor::visitColor` seems like a dead code and contains dynamic property allocation. Hence, this method has been removed.
This commit is contained in:
parent
825f3a9b7f
commit
695fe25891
|
@ -189,16 +189,6 @@ CSS;
|
|||
->setVariable($v);
|
||||
}
|
||||
|
||||
public function visitColor($c)
|
||||
{
|
||||
if ($this->definingVariable !== false) {
|
||||
// Make sure that all less tree colors do have a proper name
|
||||
$c->name = $this->variableOrigin->name;
|
||||
}
|
||||
|
||||
return $c;
|
||||
}
|
||||
|
||||
public function run($node)
|
||||
{
|
||||
$this->lightMode = new LightMode();
|
||||
|
|
Loading…
Reference in New Issue