Skip to content

Commit 63386df

Browse files
committed
Remove redundant stuff from UnexpectedTokenException
1 parent 24bb671 commit 63386df

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/Sabberworm/CSS/Parsing/UnexpectedTokenException.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@ class UnexpectedTokenException extends SourceException {
1010
private $sFound;
1111
// Possible values: literal, identifier, count, expression, search
1212
private $sMatchType;
13-
private $iLineNo;
1413

1514
public function __construct($sExpected, $sFound, $sMatchType = 'literal', $iLineNo = 0) {
1615
$this->sExpected = $sExpected;
1716
$this->sFound = $sFound;
1817
$this->sMatchType = $sMatchType;
19-
$this->iLineNo = $iLineNo;
2018
$sMessage = "Token “{$sExpected}” ({$sMatchType}) not found. Got “{$sFound}”.";
2119
if($this->sMatchType === 'search') {
2220
$sMessage = "Search for “{$sExpected}” returned no results. Context: “{$sFound}”.";
@@ -30,8 +28,4 @@ public function __construct($sExpected, $sFound, $sMatchType = 'literal', $iLine
3028

3129
parent::__construct($sMessage, $iLineNo);
3230
}
33-
34-
public function getLineNo() {
35-
return $this->iLineNo;
36-
}
3731
}

0 commit comments

Comments
 (0)