MDL-87426 core_files: Remove the deprecated function
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
issueNumber: MDL-87426
|
||||
notes:
|
||||
core_files:
|
||||
- message: >-
|
||||
The following methods have been removed from `public/lib/filestorage/file_storage.php`:
|
||||
- `\file_storage::content_exists()`
|
||||
- `\file_storage::try_content_recovery()`
|
||||
type: removed
|
||||
@@ -1913,32 +1913,6 @@ class file_storage {
|
||||
return $this->filesystem->supports_xsendfile();
|
||||
}
|
||||
|
||||
/**
|
||||
* Content exists
|
||||
*
|
||||
* @param string $contenthash
|
||||
* @return bool
|
||||
* @deprecated since 3.3
|
||||
*/
|
||||
public function content_exists($contenthash) {
|
||||
debugging('The content_exists function has been deprecated and should no longer be used.', DEBUG_DEVELOPER);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tries to recover missing content of file from trash.
|
||||
*
|
||||
* @param stored_file $file stored_file instance
|
||||
* @return bool success
|
||||
* @deprecated since 3.3
|
||||
*/
|
||||
public function try_content_recovery($file) {
|
||||
debugging('The try_content_recovery function has been deprecated and should no longer be used.', DEBUG_DEVELOPER);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* When user referring to a moodle file, we build the reference field
|
||||
*
|
||||
|
||||
@@ -168,7 +168,6 @@ abstract class file_system {
|
||||
return true;
|
||||
}
|
||||
|
||||
// This is called by file_storage::content_exists(), and in turn by the repository system.
|
||||
$path = $this->get_local_path_from_hash($contenthash, $fetchifnotfound);
|
||||
|
||||
// Note - it is not possible to perform a content recovery safely from a hash alone.
|
||||
|
||||
Reference in New Issue
Block a user