From c35e16dbd35c00d3dcee54f548c229e830a0b0c6 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 16 May 2012 16:01:19 +0200 Subject: [PATCH] removed obsolete code --- lib/Twig/Template.php | 8 -------- 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/lib/Twig/Template.php b/lib/Twig/Template.php index 9357781..6067ec0 100644 --- a/lib/Twig/Template.php +++ b/lib/Twig/Template.php @@ -375,14 +375,6 @@ abstract class Twig_Template implements Twig_TemplateInterface // object property if (Twig_TemplateInterface::METHOD_CALL !== $type) { - /* apparently, this is not needed as this is already covered by the array_key_exists() call below - if (!isset(self::$cache[$class]['properties'])) { - foreach (get_object_vars($object) as $k => $v) { - self::$cache[$class]['properties'][$k] = true; - } - } - */ - if (isset($object->$item) || array_key_exists($item, $object)) { if ($isDefinedTest) { return true; -- 1.7.2.5