Skip to content

Commit

Permalink
MDL-63277 qtype_ddwtos: removed unneeded qtype_classname method
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Oct 20, 2018
1 parent c28d0aa commit b51f4f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
4 changes: 0 additions & 4 deletions question/type/ddwtos/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@
*/
class qtype_ddwtos_renderer extends qtype_elements_embedded_in_question_text_renderer {

protected function qtext_classname() {
return 'qtext ddwtos_questionid_for_javascript';
}

public function formulation_and_controls(question_attempt $qa,
question_display_options $options) {
global $PAGE;
Expand Down
7 changes: 1 addition & 6 deletions question/type/gapselect/rendererbase.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ public function formulation_and_controls(question_attempt $qa,
}

$result = '';
$result .= html_writer::tag('div', $questiontext,
array('class' => $this->qtext_classname(), 'id' => $this->qtext_id($qa)));
$result .= html_writer::tag('div', $questiontext, array('class' => 'qtext'));

$result .= $this->post_qtext_elements($qa, $options);

Expand Down Expand Up @@ -99,10 +98,6 @@ protected function get_fragments_glue_placeholders($fragments) {
return $glues;
}

protected function qtext_classname() {
return 'qtext';
}

protected function qtext_id($qa) {
return str_replace(':', '_', $qa->get_qt_field_name(''));
}
Expand Down

0 comments on commit b51f4f2

Please sign in to comment.