original_string: protected function delete_files_in_hints($questionid, $contextid) {
          global $DB;
          $fs = get_file_storage();
  
          $hintids = $DB->get_records_menu('question_hints',
                  array('questionid' => $questionid), 'id', 'id,1');
          foreach ($hintids as $hintid => $notused) {
              $fs->delete_area_files($contextid, 'question', 'hint', $hintid);
          }
      }
code: protected function delete_files_in_hints($questionid, $contextid) {
          global $DB;
          $fs = get_file_storage();
  
          $hintids = $DB->get_records_menu('question_hints',
                  array('questionid' => $questionid), 'id', 'id,1');
          foreach ($hintids as $hintid => $notused) {
              $fs->delete_area_files($contextid, 'question', 'hint', $hintid);
          }
      }
code_tokens: protected function delete_files_in_hints ( $ questionid , $ contextid ) { global $ DB ; $ fs = get_file_storage ( ) ; $ hintids = $ DB -> get_records_menu ( 'question_hints' , array ( 'questionid' => $ questionid ) , 'id' , 'id,1' ) ; foreach ( $ hintids as $ hintid => $ notused ) { $ fs -> delete_area_files ( $ contextid , 'question' , 'hint' , $ hintid ) ; } }
docstring: Delete all the files belonging to this question's hints.
  @param int $questionid the question being deleted.
  @param int $contextid the context the question is in.
docstring_tokens: Delete all the files belonging to this question s hints .