Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
Merge pull request #95 from Yahasana/master
Browse files Browse the repository at this point in the history
remove dead code and minus enhance
  • Loading branch information
oyejorge committed Mar 17, 2014
2 parents 083e811 + e04c1cc commit 958476b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/Less/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,9 @@ public function getCss(){
*/
private function PreVisitors($root){

$preEvalVisitors = array();
for($i = 0; $i < count($preEvalVisitors); $i++ ){
$preEvalVisitors[$i]->run($root);
}

if( Less_Parser::$options['plugins'] ){
foreach(Less_Parser::$options['plugins'] as $plugin){
if( property_exists($plugin,'isPreEvalVisitor') && $plugin->isPreEvalVisitor ){
if( !empty($plugin->isPreEvalVisitor) ){
$plugin->run($root);
}
}
Expand Down

0 comments on commit 958476b

Please sign in to comment.