mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 03:16:34 +00:00
removed obsolete code
This commit is contained in:
@@ -21,9 +21,7 @@ class Twig_TokenParser_Display extends Twig_TokenParser
|
||||
{
|
||||
$lineno = $token->getLine();
|
||||
$name = $this->parser->getStream()->expect(Twig_Token::NAME_TYPE)->getValue();
|
||||
if (!$this->parser->hasBlock($name)) {
|
||||
throw new Twig_SyntaxError("The block '$name' cannot be displayed as it has not yet been defined", $lineno);
|
||||
}
|
||||
|
||||
$this->parser->getStream()->expect(Twig_Token::BLOCK_END_TYPE);
|
||||
|
||||
return new Twig_Node_BlockReference($name, $lineno, $this->getTag());
|
||||
|
||||
Reference in New Issue
Block a user