mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
remove unneeded method
This commit is contained in:
@@ -104,22 +104,7 @@ class Smarty_Internal_Resource_File extends Smarty_Resource
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* test is file exists and save timestamp
|
||||
*
|
||||
* @param Smarty_Template_Source $source source object
|
||||
* @param string $file file name
|
||||
*
|
||||
* @return bool true if file exists
|
||||
*/
|
||||
protected function fileExists(Smarty_Template_Source $source, $file)
|
||||
{
|
||||
$source->timestamp = $source->exists = is_file($file);
|
||||
$source->timestamp = $source->exists ? filemtime($file) : false;
|
||||
return $source->exists;
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* populate Source Object with meta data from Resource
|
||||
*
|
||||
* @param Smarty_Template_Source $source source object
|
||||
|
Reference in New Issue
Block a user