This hacky solution is brought to you by the the motivation to
release.
$DB->delete_records('quiz_overrides', array('id' => $overrideid));
+ /* TODO MDL-45057 - Restore this event firing.
// Set the common parameters for one of the events we will be triggering.
$params = array(
'objectid' => $override->id,
// Trigger the override deleted event.
$event->add_record_snapshot('quiz_overrides', $override);
$event->trigger();
+ */
return true;
}