original_string: public function remove(stdClass $submission) {
          global $DB;
  
          $submissionid = $submission ? $submission->id : 0;
          if ($submissionid) {
              $DB->delete_records('assignsubmission_onlinetext', array('submission' => $submissionid));
          }
          return true;
      }
code: public function remove(stdClass $submission) {
          global $DB;
  
          $submissionid = $submission ? $submission->id : 0;
          if ($submissionid) {
              $DB->delete_records('assignsubmission_onlinetext', array('submission' => $submissionid));
          }
          return true;
      }
code_tokens: public function remove ( stdClass $ submission ) { global $ DB ; $ submissionid = $ submission ? $ submission -> id : 0 ; if ( $ submissionid ) { $ DB -> delete_records ( 'assignsubmission_onlinetext' , array ( 'submission' => $ submissionid ) ) ; } return true ; }
docstring: Remove a submission.
  
  @param stdClass $submission The submission
  @return boolean
docstring_tokens: Remove a submission .