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:
raviks789 2023-07-04 09:52:49 +02:00
parent 825f3a9b7f
commit 695fe25891
1 changed files with 0 additions and 10 deletions

View File

@ -189,16 +189,6 @@ CSS;
->setVariable($v); ->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) public function run($node)
{ {
$this->lightMode = new LightMode(); $this->lightMode = new LightMode();