public boolean deleteStatement(TestCase test,int position) throws ConstructionFailedException {
  if (!ConstraintVerifier.canDelete(test,position)) {
    return false;
  }
  logger.debug("Deleting target statement - {}",position);
  Set<Integer> toDelete=new LinkedHashSet<>();
  recursiveDeleteInclusion(test,toDelete,position);
  List<Integer> pos=new ArrayList<>(toDelete);
  Collections.sort(pos,Collections.reverseOrder());
  for (  Integer i : pos) {
    logger.debug("Deleting statement: {}",i);
    test.remove(i);
  }
  return true;
}

public boolean deleteStatement ( TestCase test , int position ) throws ConstructionFailedException { if ( ! ConstraintVerifier . canDelete ( test , position ) ) { return false ; } logger . debug ( "Deleting target statement - {}" , position ) ; Set < Integer > toDelete = new LinkedHashSet < > ( ) ; recursiveDeleteInclusion ( test , toDelete , position ) ; List < Integer > pos = new ArrayList < > ( toDelete ) ; Collections . sort ( pos , Collections . reverseOrder ( ) ) ; for ( Integer i : pos ) { logger . debug ( "Deleting statement: {}" , i ) ; test . remove ( i ) ; } return true ; }
delete the statement at position from the test case and remove all references to it
