From d94ef5639580501ab5a67b5d9addbfd84a54b836 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Wed, 22 Aug 2012 10:00:37 +0800 Subject: [PATCH] MDL-34870 enrol_cohort - don't need to do useless work --- enrol/cohort/lib.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/enrol/cohort/lib.php b/enrol/cohort/lib.php index c69f5e0d2ac..b70b89f2fb1 100644 --- a/enrol/cohort/lib.php +++ b/enrol/cohort/lib.php @@ -121,14 +121,7 @@ class enrol_cohort_plugin extends enrol_plugin { * @return void */ public function course_updated($inserted, $course, $data) { - global $CFG; - - if (!$inserted) { - // Let's not sync cohorts anytime a course is updated... - } else { - // cohorts are never inserted automatically - } - + // It turns out there is no need for cohorts to deal with this hook, see MDL-34870. } /**