public final void removeSubTree(){
  if (getLastMove() != null) {
    tree.goBack();
    int defChild=tree.currentNode.defaultChild;
    tree.deleteVariation(defChild);
  }
 else {
    while (canRedoMove())     tree.deleteVariation(0);
  }
  pendingDrawOffer=false;
  updateTimeControl(true);
}

public final void removeSubTree ( ) { if ( getLastMove ( ) != null ) { tree . goBack ( ) ; int defChild = tree . currentNode . defaultChild ; tree . deleteVariation ( defChild ) ; } else { while ( canRedoMove ( ) ) tree . deleteVariation ( 0 ) ; } pendingDrawOffer = false ; updateTimeControl ( true ) ; }
delete whole game sub - tree rooted at current position .
