From 2c2e9982d6c2060eec14350a62dcaa9d0fbb89c3 Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Thu, 19 Sep 2024 22:55:03 +0800 Subject: [PATCH] MDL-82681 mod_assign: Deprecate process_save_grading_options() --- .upgradenotes/MDL-82681-2024091902542827.yml | 7 +++++++ mod/assign/locallib.php | 9 +++++++++ 2 files changed, 16 insertions(+) create mode 100644 .upgradenotes/MDL-82681-2024091902542827.yml diff --git a/.upgradenotes/MDL-82681-2024091902542827.yml b/.upgradenotes/MDL-82681-2024091902542827.yml new file mode 100644 index 00000000000..a2d8f58d672 --- /dev/null +++ b/.upgradenotes/MDL-82681-2024091902542827.yml @@ -0,0 +1,7 @@ +issueNumber: MDL-82681 +notes: + mod_assign: + - message: >- + The method process_save_grading_options() has been deprecated as it is + no longer used. + type: deprecated diff --git a/mod/assign/locallib.php b/mod/assign/locallib.php index a7cd878c56b..c791a8a97ba 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -7342,9 +7342,18 @@ class assign { /** * Save grading options. * + * @deprecated since Moodle 4.5 + * @todo Final deprecation in Moodle 6.0. See MDL-82876. * @return void */ + #[\core\attribute\deprecated( + 'null', + since: '4.5', + reason: 'It is no longer used.', + mdl: 'MDL-82681', + )] protected function process_save_grading_options() { + \core\deprecation::emit_deprecation_if_present([self::class, __FUNCTION__]); } /**