MDL-28666: filelib - remove unusused globals

This commit is contained in:
Dan Poltawski
2012-05-21 18:21:36 +08:00
parent f8e74b20f9
commit 7d44f9c2a2
-2
View File
@@ -4214,7 +4214,6 @@ class cache_file {
* @return string cached file path
*/
public static function create_from_url($ref, $url, $options = array()) {
global $CFG;
$instance = self::get_instance($options);
$cachedfilepath = $instance->generate_filepath($ref);
$fp = fopen($cachedfilepath, 'w');
@@ -4234,7 +4233,6 @@ class cache_file {
* @return string cached file path
*/
public static function create_from_string($ref, $string, $options = array()) {
global $CFG;
$instance = self::get_instance($options);
$cachedfilepath = $instance->generate_filepath($ref);
$fp = fopen($cachedfilepath, 'w');