[Query] removed unused private _peekBeyond() method from Parser class.
This commit is contained in:
parent
c0620bf857
commit
16da74d1da
@ -413,26 +413,6 @@ class Parser
|
|||||||
throw QueryException::semanticalError($message);
|
throw QueryException::semanticalError($message);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Peeks beyond the specified token and returns the first token after that one.
|
|
||||||
*
|
|
||||||
* @param array $token
|
|
||||||
* @return array
|
|
||||||
*/
|
|
||||||
private function _peekBeyond($token)
|
|
||||||
{
|
|
||||||
$peek = $this->_lexer->peek();
|
|
||||||
|
|
||||||
while ($peek['value'] != $token) {
|
|
||||||
$peek = $this->_lexer->peek();
|
|
||||||
}
|
|
||||||
|
|
||||||
$peek = $this->_lexer->peek();
|
|
||||||
$this->_lexer->resetPeek();
|
|
||||||
|
|
||||||
return $peek;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Peek beyond the matched closing parenthesis and return the first token after that one.
|
* Peek beyond the matched closing parenthesis and return the first token after that one.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user