Skip to content

Commit

Permalink
MDL-78528 course: Deprecate unused methods
Browse files Browse the repository at this point in the history
The method core_course_bulk_activity_completion_renderer::edit_default_completion()
has been deprecated and will be removed in Moodle 4.7.
  • Loading branch information
sarjona committed Aug 9, 2023
1 parent 2e41286 commit a2db074
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 74 deletions.
4 changes: 4 additions & 0 deletions course/classes/output/bulk_activity_completion_renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,12 @@ public function edit_bulk_completion($form, $activities) {
* @param moodleform $form
* @param array $modules
* @return string
* @deprecated since Moodle 4.3 MDL-78528
* @todo MDL-78711 This will be deleted in Moodle 4.7
*/
public function edit_default_completion($form, $modules) {
debugging('edit_default_completion() is deprecated and will be removed.', DEBUG_DEVELOPER);

ob_start();
$form->display();
$formhtml = ob_get_contents();
Expand Down
74 changes: 0 additions & 74 deletions course/editdefaultcompletion.php

This file was deleted.

1 change: 1 addition & 0 deletions course/upgrade.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ information provided here is intended especially for developers.
* External function core_course_external::get_course_contents() now returns a new field activitybadge with the data to display
the activity badge when the module implements it.
* prepare_new_moduleinfo_data() now accepts a parameter "suffix" that will be added to the name of the completion rules.
* The method core_course_bulk_activity_completion_renderer:: edit_default_completion() has been deprecated and will be removed.

=== 4.2 ===
* course/mod.php now accepts parameter beforemod for adding course modules. It contains the course module id
Expand Down

0 comments on commit a2db074

Please sign in to comment.