From 43ec3036f70d3a070ca9c962eb95d30a1c8bb735 Mon Sep 17 00:00:00 2001 From: Arnaud Le Blanc Date: Sun, 26 Dec 2010 12:47:49 +0100 Subject: [PATCH] removed Template::callFunction --- lib/Twig/Template.php | 14 -------------- 1 files changed, 0 insertions(+), 14 deletions(-) diff --git a/lib/Twig/Template.php b/lib/Twig/Template.php index e8f5be0..46aec99 100644 --- a/lib/Twig/Template.php +++ b/lib/Twig/Template.php @@ -99,20 +99,6 @@ abstract class Twig_Template implements Twig_TemplateInterface return $context[$item]; } - protected function callFunction($context, $function, array $arguments = array()) - { - if (!$function instanceof Twig_Function) { - throw new Twig_Error_Runtime('Called a non-function', -1, $this->getTemplateName()); - } - - $object = $function->getObject(); - if (!is_object($object)) { - $object = $this->getContext($context, $object); - } - - return $this->getAttribute($object, $function->getMethod(), $arguments, Twig_Node_Expression_GetAttr::TYPE_METHOD, false); - } - protected function getAttribute($object, $item, array $arguments = array(), $type = Twig_Node_Expression_GetAttr::TYPE_ANY, $noStrictCheck = false) { // array -- 1.7.2.5