diff --git a/lib/enrollib.php b/lib/enrollib.php index 75072e23389..67a1cfdd19d 100644 --- a/lib/enrollib.php +++ b/lib/enrollib.php @@ -1538,17 +1538,11 @@ abstract class enrol_plugin { } /** - * Is it possible to delete enrol instance via standard UI? - * * @deprecated since Moodle 2.8 MDL-35864 - please use can_delete_instance() instead. - * @todo MDL-46479 This will be deleted in Moodle 3.0. - * @see class_name::can_delete_instance() - * @param object $instance - * @return bool */ public function instance_deleteable($instance) { - debugging('Function enrol_plugin::instance_deleteable() is deprecated', DEBUG_DEVELOPER); - return $this->can_delete_instance($instance); + throw new coding_exception('Function enrol_plugin::instance_deleteable() is deprecated, use + enrol_plugin::can_delete_instance() instead'); } /**