From b3f8ddefd21790bba90ebb05f069695ba1508c99 Mon Sep 17 00:00:00 2001 From: Uwe Tews Date: Tue, 6 Jan 2015 04:42:49 +0100 Subject: [PATCH] remove redundant overloaded methods --- .../smarty_internal_resource_php.php | 38 ------------------- 1 file changed, 38 deletions(-) diff --git a/libs/sysplugins/smarty_internal_resource_php.php b/libs/sysplugins/smarty_internal_resource_php.php index 50668f04..c836d1b2 100644 --- a/libs/sysplugins/smarty_internal_resource_php.php +++ b/libs/sysplugins/smarty_internal_resource_php.php @@ -33,44 +33,6 @@ class Smarty_Internal_Resource_Php extends Smarty_Internal_Resource_File $this->short_open_tag = ini_get('short_open_tag'); } - /** - * populate Source Object with meta data from Resource - * - * @param Smarty_Template_Source $source source object - * @param Smarty_Internal_Template $_template template object - * - * @return void - */ - public function populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template = null) - { - $source->filepath = $this->buildFilepath($source, $_template); - - if ($source->filepath !== false) { - if (is_object($source->smarty->security_policy)) { - $source->smarty->security_policy->isTrustedResourceDir($source->filepath); - } - - $source->uid = sha1($source->filepath); - if ($source->smarty->compile_check) { - $source->timestamp = @filemtime($source->filepath); - $source->exists = !!$source->timestamp; - } - } - } - - /** - * populate Source Object with timestamp and exists from Resource - * - * @param Smarty_Template_Source $source source object - * - * @return void - */ - public function populateTimestamp(Smarty_Template_Source $source) - { - $source->timestamp = @filemtime($source->filepath); - $source->exists = !!$source->timestamp; - } - /** * Load template's source from file into current template object *