From: Fabien Potencier Date: Wed, 16 May 2012 14:01:19 +0000 (+0200) Subject: removed obsolete code X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=c35e16dbd35c00d3dcee54f548c229e830a0b0c6;p=web%2Fkonrad%2Ftwig.git removed obsolete code --- 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;