MDL-50887 antivirus: Deprecate functions no longer required.

This also removes abandoned strings that are no longer in use (since
1e23ff2 landed).
This commit is contained in:
Ruslan Kabalin
2016-02-25 09:55:45 +00:00
parent 001feb6649
commit 375223c6db
6 changed files with 36 additions and 91 deletions
+28
View File
@@ -4380,3 +4380,31 @@ function events_pending_count($eventname) {
return $DB->count_records_sql($sql, array($eventname));
}
/**
* Emails admins about a clam outcome
*
* @deprecated since Moodle 3.0 - this is a part of clamav plugin now.
* @param string $notice The body of the email to be sent.
* @return void
*/
function clam_message_admins($notice) {
debugging('clam_message_admins() is deprecated, please use message_admins() method of antivirus_clamav class.', DEBUG_DEVELOPER);
$antivirus = antiviruses_get_antivirus('clamav');
$antivirus->message_admins($notice);
}
/**
* Returns the string equivalent of a numeric clam error code
*
* @deprecated since Moodle 3.0 - this is a part of clamav plugin now.
* @param int $returncode The numeric error code in question.
* @return string The definition of the error code
*/
function get_clam_error_code($returncode) {
debugging('get_clam_error_code() is deprecated, please use get_clam_error_code() method of antivirus_clamav class.', DEBUG_DEVELOPER);
$antivirus = antiviruses_get_antivirus('clamav');
return $antivirus->get_clam_error_code($returncode);
}