removed obsolete code

This commit is contained in:
Fabien Potencier
2012-05-16 16:01:19 +02:00
parent d661c2a2f6
commit c35e16dbd3
-8
View File
@@ -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;