From 50587d71a58e608e6a7e7808a9274b8971a86635 Mon Sep 17 00:00:00 2001 From: Ankit Agarwal Date: Thu, 28 Dec 2017 11:57:34 +0530 Subject: [PATCH] MDL-41312 groups: Remove old bulk events --- group/lib.php | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/group/lib.php b/group/lib.php index ca774c1704c..f9339b92029 100644 --- a/group/lib.php +++ b/group/lib.php @@ -600,14 +600,6 @@ function groups_delete_group_members($courseid, $userid=0, $unused=false) { } $rs->close(); - // TODO MDL-41312 Remove events_trigger_legacy('groups_members_removed'). - // This event is kept here for backwards compatibility, because it cannot be - // translated to a new event as it is wrong. - $eventdata = new stdClass(); - $eventdata->courseid = $courseid; - $eventdata->userid = $userid; - events_trigger_legacy('groups_members_removed', $eventdata); - return true; } @@ -635,11 +627,6 @@ function groups_delete_groupings_groups($courseid, $showfeedback=false) { // Purge the group and grouping cache for users. cache_helper::purge_by_definition('core', 'user_group_groupings'); - // TODO MDL-41312 Remove events_trigger_legacy('groups_groupings_groups_removed'). - // This event is kept here for backwards compatibility, because it cannot be - // translated to a new event as it is wrong. - events_trigger_legacy('groups_groupings_groups_removed', $courseid); - // no need to show any feedback here - we delete usually first groupings and then groups return true; @@ -666,11 +653,6 @@ function groups_delete_groups($courseid, $showfeedback=false) { // Purge the group and grouping cache for users. cache_helper::purge_by_definition('core', 'user_group_groupings'); - // TODO MDL-41312 Remove events_trigger_legacy('groups_groups_deleted'). - // This event is kept here for backwards compatibility, because it cannot be - // translated to a new event as it is wrong. - events_trigger_legacy('groups_groups_deleted', $courseid); - if ($showfeedback) { echo $OUTPUT->notification(get_string('deleted').' - '.get_string('groups', 'group'), 'notifysuccess'); } @@ -699,11 +681,6 @@ function groups_delete_groupings($courseid, $showfeedback=false) { // Purge the group and grouping cache for users. cache_helper::purge_by_definition('core', 'user_group_groupings'); - // TODO MDL-41312 Remove events_trigger_legacy('groups_groupings_deleted'). - // This event is kept here for backwards compatibility, because it cannot be - // translated to a new event as it is wrong. - events_trigger_legacy('groups_groupings_deleted', $courseid); - if ($showfeedback) { echo $OUTPUT->notification(get_string('deleted').' - '.get_string('groupings', 'group'), 'notifysuccess'); }