Skip to content

Commit 1a95d89

Browse files
committed
remove unused variable declarations
1 parent 8443d11 commit 1a95d89

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/Compiler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ protected function matchExtendsSingle($rawSingle, &$outOrigin)
479479
$found = false;
480480

481481
foreach ($counts as $idx => $count) {
482-
list($target, $origin, $block) = $this->extends[$idx];
482+
list($target, $origin, /* $block */) = $this->extends[$idx];
483483

484484
// check count
485485
if ($count !== count($target)) {
@@ -1766,7 +1766,7 @@ protected function compileChild($child, OutputBlock $out)
17661766
*/
17671767
protected function expToString($exp)
17681768
{
1769-
list(, $op, $left, $right, $inParens, $whiteLeft, $whiteRight) = $exp;
1769+
list(, $op, $left, $right, /* $inParens */, $whiteLeft, $whiteRight) = $exp;
17701770

17711771
$content = array($this->reduce($left));
17721772

src/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function getSourceName()
118118
*/
119119
public function throwParseError($msg = 'parse error')
120120
{
121-
list($line, $column) = $this->getSourcePosition($this->count);
121+
list($line, /* $column */) = $this->getSourcePosition($this->count);
122122

123123
$loc = empty($this->sourceName) ? "line: $line" : "$this->sourceName on line $line";
124124

src/Server.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,12 @@ protected function metadataName($out)
116116
/**
117117
* Determine whether .scss file needs to be re-compiled.
118118
*
119-
* @param string $in Input path
120119
* @param string $out Output path
121120
* @param string $etag ETag
122121
*
123122
* @return boolean True if compile required.
124123
*/
125-
protected function needsCompile($in, $out, &$etag)
124+
protected function needsCompile($out, &$etag)
126125
{
127126
if (! is_file($out)) {
128127
return true;
@@ -326,7 +325,7 @@ public function serve($salt = '')
326325
$output = $this->cacheName($salt . $input);
327326
$etag = $noneMatch = trim($this->getIfNoneMatchHeader(), '"');
328327

329-
if ($this->needsCompile($input, $output, $etag)) {
328+
if ($this->needsCompile($output, $etag)) {
330329
try {
331330
list($css, $etag) = $this->compile($input, $output);
332331

@@ -408,7 +407,7 @@ public function checkedCachedCompile($in, $out, $force = false)
408407
throw new ServerException('Invalid or unwritable output file specified.');
409408
}
410409

411-
if ($force || $this->needsCompile($in, $out, $etag)) {
410+
if ($force || $this->needsCompile($out, $etag)) {
412411
list($css, $etag) = $this->compile($in, $out);
413412
} else {
414413
$css = file_get_contents($out);

0 commit comments

Comments
 (0)