Skip to content

Commit

Permalink
MDL-20296 remove obsolete function response_summary()
Browse files Browse the repository at this point in the history
  • Loading branch information
ppichet committed May 15, 2010
1 parent 4868e95 commit 999f7be
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions question/type/calculated/questiontype.php
Expand Up @@ -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) {
Expand Down
4 changes: 0 additions & 4 deletions question/type/calculatedsimple/questiontype.php
Expand Up @@ -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){

Expand Down

0 comments on commit 999f7be

Please sign in to comment.