Skip to content

Commit

Permalink
Merge "Remove Less_Parser::AllParsedFiles()"
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed Jun 20, 2024
2 parents eba7da1 + af3cc38 commit a731b9b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
13 changes: 0 additions & 13 deletions lib/Less/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ class Less_Parser {
/** @var array{compress:bool,strictUnits:bool,relativeUrls:bool,urlArgs:string,numPrecision:int,import_dirs:array,indentation:string} */
public static $options = [];

/** @var Less_Environment */
private static $envCompat;

private $input; // Less input string
private $input_len; // input string length
private $pos; // current index in `input`
Expand Down Expand Up @@ -94,7 +91,6 @@ public function __construct( $env = null ) {
// which will then be passed around by reference.
if ( $env instanceof Less_Environment ) {
$this->env = $env;
self::$envCompat = $this->env;
} else {
$this->Reset( $env );
}
Expand All @@ -118,7 +114,6 @@ public function Reset( $options = null ) {
self::$contentsMap = [];

$this->env = new Less_Environment();
self::$envCompat = $this->env;

// set new options
$this->SetOptions( self::$default_options );
Expand Down Expand Up @@ -753,14 +748,6 @@ private function cacheFile( $file_path ) {
}
}

/**
* @deprecated since 4.3.0 Use $parser->getParsedFiles() instead.
* @return string[]
*/
public static function AllParsedFiles() {
return self::$envCompat->imports;
}

/**
* @since 4.3.0
* @return string[]
Expand Down
6 changes: 0 additions & 6 deletions test/phpunit/ParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,6 @@ public function testGetParsedFiles() {
],
$normalFiles
);

$this->assertEquals(
$files,
Less_Parser::AllParsedFiles(),
'AllParsedFiles compatibility'
);
}

public static function provideSetImportDirs() {
Expand Down

0 comments on commit a731b9b

Please sign in to comment.