diff --git a/question/type/calculated/questiontype.php b/question/type/calculated/questiontype.php index 6dc5668b141cb..a5f7a2cb2d2e4 100644 --- a/question/type/calculated/questiontype.php +++ b/question/type/calculated/questiontype.php @@ -825,10 +825,6 @@ function grade_responses(&$question, &$state, $cmoptions) { return $virtualqtype->grade_responses($numericalquestion, $state, $cmoptions) ; } - function response_summary($question, $state, $length=80, $formatting=true) { - // The actual response is the bit after the hyphen - return substr($state->answer, strpos($state->answer, '-')+1, $length); - } // ULPGC ecastro function check_response(&$question, &$state) { diff --git a/question/type/calculatedsimple/questiontype.php b/question/type/calculatedsimple/questiontype.php index 0d6423516197f..91bcd9a40bf6f 100644 --- a/question/type/calculatedsimple/questiontype.php +++ b/question/type/calculatedsimple/questiontype.php @@ -222,10 +222,6 @@ function save_question($question, $form, $course) { } - function response_summary($question, $state, $length=80, $formatting=true) { - // The actual response is the bit after the hyphen - return substr($state->answer, strpos($state->answer, '-')+1, $length); - } function custom_generator_tools_part(&$mform, $idx, $j){