From 5198d20bb18d7ee82bb3a08894f15a0bbd39cbb0 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 1 Oct 2010 12:08:57 +0200 Subject: [PATCH] removed obsolete code --- lib/Twig/TokenParser/Display.php | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/lib/Twig/TokenParser/Display.php b/lib/Twig/TokenParser/Display.php index 58e6ba6..e1c2083 100644 --- a/lib/Twig/TokenParser/Display.php +++ b/lib/Twig/TokenParser/Display.php @@ -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()); -- 1.7.2.5