MDL-43385 booktool_print: Remove unused $titles array

This commit is contained in:
Jun Pataleta 2019-02-05 16:33:33 +08:00
parent 8cf64176a7
commit 1a3a3ef2c4

View File

@ -101,7 +101,6 @@ class renderer extends plugin_renderer_base {
public function render_print_book_toc($chapters, $book, $cm) {
$first = true;
$titles = array();
$context = context_module::instance($cm->id);
@ -150,7 +149,6 @@ class renderer extends plugin_renderer_base {
}
}
$titles[$ch->id] = $title;
if (!$ch->subchapter) {
$toc .= html_writer::link(new moodle_url('#ch' . $ch->id), $title,