From 8130352f5a52a463d051175a576e724e79463f8d Mon Sep 17 00:00:00 2001 From: Ankit Agarwal Date: Thu, 18 May 2017 19:58:31 +0530 Subject: [PATCH] MDL-50632 filters: Final deprecation of apis deprecated in 3.0 --- lib/filterlib.php | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/lib/filterlib.php b/lib/filterlib.php index 38eaf31085e..516f3030eeb 100644 --- a/lib/filterlib.php +++ b/lib/filterlib.php @@ -234,20 +234,9 @@ class filter_manager { /** * @deprecated Since Moodle 3.0 MDL-50491. This was used by the old text filtering system, but no more. - * @todo MDL-50632 This will be deleted in Moodle 3.2. - * @param context $context the context. - * @return string the hash. */ - public function text_filtering_hash($context) { - debugging('filter_manager::text_filtering_hash() is deprecated. ' . - 'It was an internal part of the old format_text caching, ' . - 'and should not have been called from other code.', DEBUG_DEVELOPER); - $filters = $this->get_text_filters($context); - $hashes = array(); - foreach ($filters as $filter) { - $hashes[] = $filter->hash(); - } - return implode('-', $hashes); + public function text_filtering_hash() { + throw new coding_exception('filter_manager::text_filtering_hash() can not be used any more'); } /** @@ -323,10 +312,7 @@ class null_filter_manager { } public function text_filtering_hash() { - debugging('filter_manager::text_filtering_hash() is deprecated. ' . - 'It was an internal part of the old format_text caching, ' . - 'and should not have been called from other code.', DEBUG_DEVELOPER); - return ''; + throw new coding_exception('filter_manager::text_filtering_hash() can not be used any more'); } } @@ -417,14 +403,9 @@ abstract class moodle_text_filter { /** * @deprecated Since Moodle 3.0 MDL-50491. This was used by the old text filtering system, but no more. - * @todo MDL-50632 This will be deleted in Moodle 3.2. - * @return string The class name of the current class */ public function hash() { - debugging('moodle_text_filter::hash() is deprecated. ' . - 'It was an internal part of the old format_text caching, ' . - 'and should not have been called from other code.', DEBUG_DEVELOPER); - return __CLASS__; + throw new coding_exception('moodle_text_filter::hash() can not be used any more'); } /**