mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
remove unneeded method
This commit is contained in:
@@ -104,21 +104,6 @@ class Smarty_Internal_Resource_File extends Smarty_Resource
|
|||||||
return false;
|
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
|
* populate Source Object with meta data from Resource
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user