original_string: public function delete_steps($stepids, $context) {
          if (empty($stepids)) {
              return;
          }
          list($test, $params) = $this->db->get_in_or_equal($stepids, SQL_PARAMS_NAMED);
  
          $this->delete_response_files($context->id, $test, $params);
  
          $this->db->delete_records_select('question_attempt_step_data',
                  "attemptstepid {$test}", $params);
          $this->db->delete_records_select('question_attempt_steps',
                  "id {$test}", $params);
      }
code: public function delete_steps($stepids, $context) {
          if (empty($stepids)) {
              return;
          }
          list($test, $params) = $this->db->get_in_or_equal($stepids, SQL_PARAMS_NAMED);
  
          $this->delete_response_files($context->id, $test, $params);
  
          $this->db->delete_records_select('question_attempt_step_data',
                  "attemptstepid {$test}", $params);
          $this->db->delete_records_select('question_attempt_steps',
                  "id {$test}", $params);
      }
code_tokens: public function delete_steps ( $ stepids , $ context ) { if ( empty ( $ stepids ) ) { return ; } list ( $ test , $ params ) = $ this -> db -> get_in_or_equal ( $ stepids , SQL_PARAMS_NAMED ) ; $ this -> delete_response_files ( $ context -> id , $ test , $ params ) ; $ this -> db -> delete_records_select ( 'question_attempt_step_data' , "attemptstepid {$test}" , $ params ) ; $ this -> db -> delete_records_select ( 'question_attempt_steps' , "id {$test}" , $ params ) ; }
docstring: Delete all the steps for a question attempt.
  
  Private method, only for use by other parts of the question engine.
  
  @param int $qaids question_attempt id.
  @param context $context the context that the $quba belongs to.
docstring_tokens: Delete all the steps for a question attempt .